We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f86a86 commit 8f5e210Copy full SHA for 8f5e210
components/dependency_injection/advanced.rst
@@ -53,9 +53,9 @@ to be *not* public (i.e. private):
53
$definition->setPublic(false);
54
$container->setDefinition('foo', $definition);
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.
+What makes private services special is that, if they are only injected once,
+they are converted from services to inlined instantiations (e.g. ``new PrivateThing()``).
+This increases the container's performance.
59
60
Now that the service is private, you *should not* fetch the service directly
61
from the container::
0 commit comments