Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 38b7f82

Browse filesBrowse files
javiereguiluzweaverryan
authored andcommitted
Added a note about inlined private services
1 parent abca098 commit 38b7f82
Copy full SHA for 38b7f82

File tree

Expand file treeCollapse file tree

2 files changed

+9
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+9
-0
lines changed

‎book/service_container.rst

Copy file name to clipboardExpand all lines: book/service_container.rst
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,13 @@ By default only public services are shown, but you can also view private service
10011001
10021002
$ php app/console container:debug --show-private
10031003
1004+
.. note::
1005+
1006+
If a private service is only used as an argument to just one other service,
1007+
it won't be displayed by the ``container:debug`` command, even when using
1008+
the ``--show-private`` option. See :ref:`inlined-private-services` for a
1009+
more detailed explanation.
1010+
10041011
You can get more detailed information about a particular service by specifying
10051012
its id:
10061013

‎components/dependency_injection/advanced.rst

Copy file name to clipboardExpand all lines: components/dependency_injection/advanced.rst
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ However, there are use-cases when you don't want a service to be public. This
1818
is common when a service is only defined because it could be used as an
1919
argument for another service.
2020

21+
.. _inlined-private-services:
22+
2123
.. note::
2224

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.