X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FImportBundle%2FConsumer%2FRedisEntryConsumer.php;h=862d0c43cee1d77bbee944405e717deaaba3e24f;hb=c8ac32cf171b60e8e496bbaf781cbf309bd1e04c;hp=450b71ffdfcb2a554370a09fa193ad08cc888337;hpb=2a4a861b34b8ada5561345621c06ddb969303275;p=github%2Fwallabag%2Fwallabag.git 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; + } }