task-bundle
task-bundle copied to clipboard
fix deprecated warnings
Hello Freddy,
Be careful when you replace the ContainerAwareCommand
with the single Command
one and be sure that the getContainer()
method is not called inside the command.
For example, in the PruneCommand
you can see the following statement line 29 :
$pruner = $this->getContainer()->get('glooby_task.queue_pruner');
In this precise case you may inject the glooby_task.queue_pruner
service inside the command to avoid an error and to keep the original behavior.