Skip to content

Conversation

@rommelfreddy
Copy link

No description provided.

@Maxooo
Copy link

Maxooo commented Dec 2, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants