File tree
Expand file treeCollapse file tree1 file changed
+3
-3
lines changed components/dependency_injection
Expand file treeCollapse file tree1 file changed
+3
-3
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -20,9 +20,9 @@ argument for another service.
|
20 | 20 |
|
21 | 21 | .. note::
|
22 | 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()``). |
| 23 | +If you use a private service as an argument to only one other service, |
| 24 | +this will result in an inlined instantiation (e.g. ``new PrivateFooBar()``) |
| 25 | +inside this other service, making it publicly unavailable at runtime. |
26 | 26 |
|
27 | 27 | Simply said: A service will be private when you do not want to access it
|
28 | 28 | directly from your code.
|
|
You can’t perform that action at this time.
0 commit comments