task-bundle icon indicating copy to clipboard operation
task-bundle copied to clipboard

fix deprecated warnings

Open rommelfreddy opened this issue 5 years ago • 1 comments

rommelfreddy avatar Nov 30 '19 18:11 rommelfreddy

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.

Maxooo avatar Dec 02 '19 14:12 Maxooo