[Solved] how to call a Symfony service from my ContainerAwareCommand? [closed]


It’s described in detail here:

http://symfony.com/doc/master/cookbook/console/console_command.html#getting-services-from-the-service-container

A command that implements ContainerAwareCommand will have direct access to the service container and you can get/use services as usual.

solved how to call a Symfony service from my ContainerAwareCommand? [closed]