diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-11-18 16:28:54 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-11-18 16:28:54 +0100 |
commit | c8ac32cf171b60e8e496bbaf781cbf309bd1e04c (patch) | |
tree | 4927769fd04e649fa61cbe2da7e556f68d2d6a20 | |
parent | 2a4a861b34b8ada5561345621c06ddb969303275 (diff) | |
download | wallabag-c8ac32cf171b60e8e496bbaf781cbf309bd1e04c.tar.gz wallabag-c8ac32cf171b60e8e496bbaf781cbf309bd1e04c.tar.zst wallabag-c8ac32cf171b60e8e496bbaf781cbf309bd1e04c.zip |
Jump to Simpleue 2.0
The 1.3.0 tag is introducing BC so we jump to the 2.0
-rw-r--r-- | composer.json | 2 | ||||
-rw-r--r-- | src/Wallabag/ImportBundle/Consumer/RedisEntryConsumer.php | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/composer.json b/composer.json index d1f970c7..ae7108f0 100644 --- a/composer.json +++ b/composer.json | |||
@@ -80,7 +80,7 @@ | |||
80 | "white-october/pagerfanta-bundle": "^1.0", | 80 | "white-october/pagerfanta-bundle": "^1.0", |
81 | "php-amqplib/rabbitmq-bundle": "^1.8", | 81 | "php-amqplib/rabbitmq-bundle": "^1.8", |
82 | "predis/predis": "^1.0", | 82 | "predis/predis": "^1.0", |
83 | "javibravo/simpleue": "^1.0", | 83 | "javibravo/simpleue": "^2.0", |
84 | "symfony/dom-crawler": "^3.1", | 84 | "symfony/dom-crawler": "^3.1", |
85 | "friendsofsymfony/jsrouting-bundle": "^1.6", | 85 | "friendsofsymfony/jsrouting-bundle": "^1.6", |
86 | "bdunogier/guzzle-site-authenticator": "^1.0.0@dev", | 86 | "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 | |||
21 | /** | 21 | /** |
22 | * Should tell if the given job will kill the worker. | 22 | * Should tell if the given job will kill the worker. |
23 | * We don't want to stop it :). | 23 | * We don't want to stop it :). |
24 | * | ||
25 | * @param string $job Content of the message (directly from Redis) | ||
26 | * | ||
27 | * @return false | ||
24 | */ | 28 | */ |
25 | public function isStopJob($job) | 29 | public function isStopJob($job) |
26 | { | 30 | { |
27 | return false; | 31 | return false; |
28 | } | 32 | } |
33 | |||
34 | /** | ||
35 | * This abstract method is only used when we use one queue for multiple job type. | ||
36 | * We don't do that, so we'll always return true. | ||
37 | * | ||
38 | * @param string $job Content of the message (directly from Redis) | ||
39 | * | ||
40 | * @return true | ||
41 | */ | ||
42 | public function isMyJob($job) | ||
43 | { | ||
44 | return true; | ||
45 | } | ||
29 | } | 46 | } |