Casted maxIterations for Redis import

Simpleue\Worker wants an integer, we gave it a string
This commit is contained in:
Nicolas Lœuillet 2016-12-06 11:44:40 +01:00
parent 4a1f963531
commit 7dc48ef820
No known key found for this signature in database
GPG key ID: BDC1EFB5CA0145F2

View 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();