Skip to content

Commit 8f5e210

Browse files
committed
Re-wording based on Wouter's recommendation
1 parent 0f86a86 commit 8f5e210

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/dependency_injection/advanced.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ to be *not* public (i.e. private):
5353
$definition->setPublic(false);
5454
$container->setDefinition('foo', $definition);
5555
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.
5959

6060
Now that the service is private, you *should not* fetch the service directly
6161
from the container::

0 commit comments

Comments
 (0)