Skip to content

Adding information on the container:debug command #1694

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions book/service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,29 @@ additional arguments (beyond just the ``name`` parameter).
For a list of all the tags available in the core Symfony Framework, check
out :doc:`/reference/dic_tags`.

Debugging Services
------------------

You can find out what services are registered with the container using the
console, to list the services by id and which class they are:

.. code-block:: bash

$ php app/console container:debug

By default only public services are shown, you can also view private services:

.. code-block:: bash

$ php app/console container:debug --show-private

You can get more detailed information about a particular service by specifying
its id:

.. code-block:: bash

$ php app/console container:debug my_mailer

Learn more
----------

Expand Down