mirror of
https://github.com/wallabag/wallabag.git
synced 2024-06-24 08:00:45 +00:00
7d862f83b9
Using an abstract method allow to share code but also can be used it we add a new broker in the future
18 lines
369 B
PHP
18 lines
369 B
PHP
<?php
|
|
|
|
namespace Wallabag\ImportBundle\Consumer;
|
|
|
|
use OldSound\RabbitMqBundle\RabbitMq\ConsumerInterface;
|
|
use PhpAmqpLib\Message\AMQPMessage;
|
|
|
|
class AMPQEntryConsumer extends AbstractConsumer implements ConsumerInterface
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function execute(AMQPMessage $msg)
|
|
{
|
|
return $this->handleMessage($msg->body);
|
|
}
|
|
}
|