Skip to content

Commit

Permalink
Added a note about inlined private services
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Mar 28, 2014
1 parent 9f26da8 commit 04cb9d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions book/service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,13 @@ By default only public services are shown, but you can also view private service
$ php app/console container:debug --show-private
.. note::

If a private service is only used as an argument to just one other service,
it won't be displayed by the ``container:debug`` command, even when using
the ``--show-private`` option. See :ref:`inlined-private-services` for a
more detailed explanation.

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

Expand Down
2 changes: 2 additions & 0 deletions components/dependency_injection/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ However, there are use-cases when you don't want a service to be public. This
is common when a service is only defined because it could be used as an
argument for another service.

.. _inlined-private-services:

.. note::

If you use a private service as an argument to only one other service,
Expand Down

0 comments on commit 04cb9d4

Please sign in to comment.