To get a list of all services (public and private) and their PHP classes:
php bin/console debug:container
To get a list of hidden services:
php bin/console debug:container --show-hidden
To show a list of all of the available types that can be used for autowiring (in case of App\Service\Mailer
):
php bin/console debug:autowiring
To get more detailed information about a particular service by specifying its id (in case of App\Service\Mailer
):
php bin/console debug:container 'App\Service\Mailer'
To show the service arguments (in case of App\Service\Mailer
):
php bin/console debug:container 'App\Service\Mailer' --show-arguments
To show all events and their listeners:
php bin/console debug:event-dispatcher
Get registered listeners for a particular event by specifying its name (in case of kernel.exception
):
php bin/console debug:event-dispatcher kernel.exception