You can also just decouple your commands from Symfony and use them as services, then you can do a regular dependecy injection to the constructor of the command.
You can also just decouple your commands from Symfony and use them as services, then you can do a regular dependecy injection to the constructor of the command.