Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit04cb9d4

Browse files
committed
Added a note about inlined private services
1 parent9f26da8 commit04cb9d4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

‎book/service_container.rst‎

Lines 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‎

Lines 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)

[8]ページ先頭

©2009-2025 Movatter.jp