]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Jump to Simpleue 2.0 3422/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 18 Nov 2017 15:28:54 +0000 (16:28 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 18 Nov 2017 15:28:54 +0000 (16:28 +0100)
The 1.3.0 tag is introducing BC so we jump to the 2.0

composer.json
src/Wallabag/ImportBundle/Consumer/RedisEntryConsumer.php

index d1f970c79704956bb8beb94becbc8e2490ab6634..ae7108f06321597c66ce64e3669399e4c87fa54f 100644 (file)
@@ -80,7 +80,7 @@
         "white-october/pagerfanta-bundle": "^1.0",
         "php-amqplib/rabbitmq-bundle": "^1.8",
         "predis/predis": "^1.0",
-        "javibravo/simpleue": "^1.0",
+        "javibravo/simpleue": "^2.0",
         "symfony/dom-crawler": "^3.1",
         "friendsofsymfony/jsrouting-bundle": "^1.6",
         "bdunogier/guzzle-site-authenticator": "^1.0.0@dev",
index 450b71ffdfcb2a554370a09fa193ad08cc888337..862d0c43cee1d77bbee944405e717deaaba3e24f 100644 (file)
@@ -21,9 +21,26 @@ class RedisEntryConsumer extends AbstractConsumer implements Job
     /**
      * Should tell if the given job will kill the worker.
      * We don't want to stop it :).
+     *
+     * @param string $job Content of the message (directly from Redis)
+     *
+     * @return false
      */
     public function isStopJob($job)
     {
         return false;
     }
+
+    /**
+     * This abstract method is only used when we use one queue for multiple job type.
+     * We don't do that, so we'll always return true.
+     *
+     * @param string $job Content of the message (directly from Redis)
+     *
+     * @return true
+     */
+    public function isMyJob($job)
+    {
+        return true;
+    }
 }