forked from wallabag/wallabag
AMPQ -> AMQP
This commit is contained in:
17
src/Wallabag/ImportBundle/Consumer/AMQPEntryConsumer.php
Normal file
17
src/Wallabag/ImportBundle/Consumer/AMQPEntryConsumer.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user