From c8ac32cf171b60e8e496bbaf781cbf309bd1e04c Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Sat, 18 Nov 2017 16:28:54 +0100 Subject: [PATCH] Jump to Simpleue 2.0 The 1.3.0 tag is introducing BC so we jump to the 2.0 --- composer.json | 2 +- .../Consumer/RedisEntryConsumer.php | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d1f970c7..ae7108f0 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/Wallabag/ImportBundle/Consumer/RedisEntryConsumer.php b/src/Wallabag/ImportBundle/Consumer/RedisEntryConsumer.php index 450b71ff..862d0c43 100644 --- a/src/Wallabag/ImportBundle/Consumer/RedisEntryConsumer.php +++ b/src/Wallabag/ImportBundle/Consumer/RedisEntryConsumer.php @@ -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; + } } -- 2.41.0