Is there a list of Symfony2 default container services?

The command line php app/console container:debug shows the list of services you can inject into another service or get from a Controller with Controller::get($serviceName).

This list shows only public services. Add the option --show-private into display private services. Private services can only be injected in another service, not accessed from a Controller or any ContainerAware...

EDIT: From Symfony 2.7, use debug:container instead of container:debug


The WebProfilerExtraBundle is very useful for this.

It also adds some details about routing, assetic and twig that are very helpful. As a someone learning to think in Symfony, I REALLY like this bundle.


you can also do this if you want to get details of a single service:

    php app/console container:debug service_id

this will give you info on that service