8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d0b5042 + 16d38ff commit a708102Copy full SHA for a708102
components/dependency_injection/advanced.rst
@@ -20,9 +20,9 @@ argument for another service.
20
21
.. note::
22
23
- If you use a private service as an argument to more than one other service,
24
- this will result in two different instances being used as the instantiation
25
- of the private service is done inline (e.g. ``new PrivateFooBar()``).
+ If you use a private service as an argument to only one other service,
+ this will result in an inlined instantiation (e.g. ``new PrivateFooBar()``)
+ inside this other service, making it publicly unavailable at runtime.
26
27
Simply said: A service will be private when you do not want to access it
28
directly from your code.
0 commit comments