forked from wallabag/wallabag
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 AMQPEntryConsumer extends AbstractConsumer implements ConsumerInterface
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function execute(AMQPMessage $msg)
|
|
{
|
|
return $this->handleMessage($msg->body);
|
|
}
|
|
}
|