]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
AMPQ -> AMQP
authorJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 14 Sep 2016 08:17:22 +0000 (10:17 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 14 Sep 2016 08:18:02 +0000 (10:18 +0200)
app/config/config.yml
src/Wallabag/ImportBundle/Consumer/AMQPEntryConsumer.php [moved from src/Wallabag/ImportBundle/Consumer/AMPQEntryConsumer.php with 82% similarity]
src/Wallabag/ImportBundle/Resources/config/rabbit.yml
tests/Wallabag/ImportBundle/Consumer/AMQPEntryConsumerTest.php [moved from tests/Wallabag/ImportBundle/Consumer/AMPQEntryConsumerTest.php with 96% similarity]

index e18a932d13e5241b6ff2baa63066b62964edc632..4b869c4f36cede65e96b809d7bcab93085e3ab06 100644 (file)
@@ -254,7 +254,7 @@ old_sound_rabbit_mq:
                 type: topic
             queue_options:
                 name: 'wallabag.import.pocket'
-            callback: wallabag_import.consumer.ampq.pocket
+            callback: wallabag_import.consumer.amqp.pocket
         import_readability:
             connection: default
             exchange_options:
@@ -262,7 +262,7 @@ old_sound_rabbit_mq:
                 type: topic
             queue_options:
                 name: 'wallabag.import.readability'
-            callback: wallabag_import.consumer.ampq.readability
+            callback: wallabag_import.consumer.amqp.readability
         import_wallabag_v1:
             connection: default
             exchange_options:
@@ -270,7 +270,7 @@ old_sound_rabbit_mq:
                 type: topic
             queue_options:
                 name: 'wallabag.import.wallabag_v1'
-            callback: wallabag_import.consumer.ampq.wallabag_v1
+            callback: wallabag_import.consumer.amqp.wallabag_v1
         import_wallabag_v2:
             connection: default
             exchange_options:
@@ -278,4 +278,4 @@ old_sound_rabbit_mq:
                 type: topic
             queue_options:
                 name: 'wallabag.import.wallabag_v2'
-            callback: wallabag_import.consumer.ampq.wallabag_v2
+            callback: wallabag_import.consumer.amqp.wallabag_v2
similarity index 82%
rename from src/Wallabag/ImportBundle/Consumer/AMPQEntryConsumer.php
rename to src/Wallabag/ImportBundle/Consumer/AMQPEntryConsumer.php
index d95a011d5af53c1469ada984515aa0317fdb1346..5aaa8c031afb0a642f23478b0b8bb6cb5542becb 100644 (file)
@@ -5,7 +5,7 @@ namespace Wallabag\ImportBundle\Consumer;
 use OldSound\RabbitMqBundle\RabbitMq\ConsumerInterface;
 use PhpAmqpLib\Message\AMQPMessage;
 
-class AMPQEntryConsumer extends AbstractConsumer implements ConsumerInterface
+class AMQPEntryConsumer extends AbstractConsumer implements ConsumerInterface
 {
     /**
      * {@inheritdoc}
index f09dda0d220ee6755f0f951e0a2326868845a015..aa049749e87bc17269edae8a46495a59a8fa8c5f 100644 (file)
@@ -1,28 +1,28 @@
 # RabbitMQ stuff
 services:
-    wallabag_import.consumer.ampq.pocket:
-        class: Wallabag\ImportBundle\Consumer\AMPQEntryConsumer
+    wallabag_import.consumer.amqp.pocket:
+        class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer
         arguments:
             - "@doctrine.orm.entity_manager"
             - "@wallabag_user.user_repository"
             - "@wallabag_import.pocket.import"
             - "@logger"
-    wallabag_import.consumer.ampq.readability:
-        class: Wallabag\ImportBundle\Consumer\AMPQEntryConsumer
+    wallabag_import.consumer.amqp.readability:
+        class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer
         arguments:
             - "@doctrine.orm.entity_manager"
             - "@wallabag_user.user_repository"
             - "@wallabag_import.readability.import"
             - "@logger"
-    wallabag_import.consumer.ampq.wallabag_v1:
-        class: Wallabag\ImportBundle\Consumer\AMPQEntryConsumer
+    wallabag_import.consumer.amqp.wallabag_v1:
+        class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer
         arguments:
             - "@doctrine.orm.entity_manager"
             - "@wallabag_user.user_repository"
             - "@wallabag_import.wallabag_v1.import"
             - "@logger"
-    wallabag_import.consumer.ampq.wallabag_v2:
-        class: Wallabag\ImportBundle\Consumer\AMPQEntryConsumer
+    wallabag_import.consumer.amqp.wallabag_v2:
+        class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer
         arguments:
             - "@doctrine.orm.entity_manager"
             - "@wallabag_user.user_repository"
similarity index 96%
rename from tests/Wallabag/ImportBundle/Consumer/AMPQEntryConsumerTest.php
rename to tests/Wallabag/ImportBundle/Consumer/AMQPEntryConsumerTest.php
index b13ade1db00ba2b1fd9e88e36e2d7ce2ddef043d..a3263771c68278869c8b5f42117b53e14ef193ba 100644 (file)
@@ -2,12 +2,12 @@
 
 namespace Tests\Wallabag\ImportBundle\Consumer\AMQP;
 
-use Wallabag\ImportBundle\Consumer\AMPQEntryConsumer;
+use Wallabag\ImportBundle\Consumer\AMQPEntryConsumer;
 use PhpAmqpLib\Message\AMQPMessage;
 use Wallabag\UserBundle\Entity\User;
 use Wallabag\CoreBundle\Entity\Entry;
 
-class AMPQEntryConsumerTest extends \PHPUnit_Framework_TestCase
+class AMQPEntryConsumerTest extends \PHPUnit_Framework_TestCase
 {
     public function testMessageOk()
     {
@@ -112,7 +112,7 @@ JSON;
             ->with(json_decode($body, true))
             ->willReturn($entry);
 
-        $consumer = new AMPQEntryConsumer(
+        $consumer = new AMQPEntryConsumer(
             $em,
             $userRepository,
             $import
@@ -157,7 +157,7 @@ JSON;
             ->disableOriginalConstructor()
             ->getMock();
 
-        $consumer = new AMPQEntryConsumer(
+        $consumer = new AMQPEntryConsumer(
             $em,
             $userRepository,
             $import
@@ -212,7 +212,7 @@ JSON;
             ->with(json_decode($body, true))
             ->willReturn(null);
 
-        $consumer = new AMPQEntryConsumer(
+        $consumer = new AMQPEntryConsumer(
             $em,
             $userRepository,
             $import