]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Casted maxIterations for Redis import 2686/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Tue, 6 Dec 2016 10:44:40 +0000 (11:44 +0100)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Tue, 6 Dec 2016 10:44:40 +0000 (11:44 +0100)
Simpleue\Worker wants an integer, we gave it a string

src/Wallabag/ImportBundle/Command/RedisWorkerCommand.php

index f793a31423d242e64a463e6f847c9a410c7c0448..2d06af44732c4480c698b95b3339f1af1039a62c 100644 (file)
@@ -36,7 +36,7 @@ class RedisWorkerCommand extends ContainerAwareCommand
         $worker = new QueueWorker(
             $this->getContainer()->get('wallabag_import.queue.redis.'.$serviceName),
             $this->getContainer()->get('wallabag_import.consumer.redis.'.$serviceName),
-            $input->getOption('maxIterations')
+            (int) $input->getOption('maxIterations')
         );
 
         $worker->start();