diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-14 10:17:22 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-14 10:18:02 +0200 |
commit | ac87e0db2ac5db90f1b0639a2d31c7098b4eaa20 (patch) | |
tree | e63c6ea89910657a5f95b083e6a1c730be2ec416 /src/Wallabag/ImportBundle/Consumer/AMQPEntryConsumer.php | |
parent | a622fbc444232a5a9e41c0047067ae5e94605819 (diff) | |
download | wallabag-ac87e0db2ac5db90f1b0639a2d31c7098b4eaa20.tar.gz wallabag-ac87e0db2ac5db90f1b0639a2d31c7098b4eaa20.tar.zst wallabag-ac87e0db2ac5db90f1b0639a2d31c7098b4eaa20.zip |
AMPQ -> AMQP
Diffstat (limited to 'src/Wallabag/ImportBundle/Consumer/AMQPEntryConsumer.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Consumer/AMQPEntryConsumer.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Consumer/AMQPEntryConsumer.php b/src/Wallabag/ImportBundle/Consumer/AMQPEntryConsumer.php new file mode 100644 index 00000000..5aaa8c03 --- /dev/null +++ b/src/Wallabag/ImportBundle/Consumer/AMQPEntryConsumer.php | |||
@@ -0,0 +1,17 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace Wallabag\ImportBundle\Consumer; | ||
4 | |||
5 | use OldSound\RabbitMqBundle\RabbitMq\ConsumerInterface; | ||
6 | use PhpAmqpLib\Message\AMQPMessage; | ||
7 | |||
8 | class AMQPEntryConsumer extends AbstractConsumer implements ConsumerInterface | ||
9 | { | ||
10 | /** | ||
11 | * {@inheritdoc} | ||
12 | */ | ||
13 | public function execute(AMQPMessage $msg) | ||
14 | { | ||
15 | return $this->handleMessage($msg->body); | ||
16 | } | ||
17 | } | ||