File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
components/dependency_injection Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,9 +53,9 @@ to be *not* public (i.e. private):
53
53
$definition->setPublic(false);
54
54
$container->setDefinition('foo', $definition);
55
55
56
- What makes private services special is that they are converted from services
57
- to inlined instantiations (e.g. ``new PrivateThing() ``) if they are only
58
- injected once. This increases the container's performance.
56
+ What makes private services special is that, if they are only injected once,
57
+ they are converted from services to inlined instantiations (e.g. ``new PrivateThing() ``).
58
+ This increases the container's performance.
59
59
60
60
Now that the service is private, you *should not * fetch the service directly
61
61
from the container::
You can’t perform that action at this time.
0 commit comments