Skip to content

Commit 3165948

Browse files
committed
Fixed formatting
1 parent c89f73f commit 3165948

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

service_container/autowiring.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,10 @@ Suppose you create a second class - ``UppercaseTransformer`` that implements
365365
}
366366

367367
If you register this as a service, you now have *two* services that implement the
368-
``AppBundle\Util\TransformerInterface`` type. Autowiring subsystem can not decide which
369-
one to use. Remember, Autowiring isn't magic: it simply
370-
looks for a service whose id matches the type-hint. So you need to choose one by
371-
creating an alias from the type to the correct service id
372-
(see :ref:`autowiring-interface-alias`).
368+
``AppBundle\Util\TransformerInterface`` type. Autowiring subsystem can not decide
369+
which one to use. Remember, autowiring isn't magic; it simply looks for a service
370+
whose id matches the type-hint. So you need to choose one by creating an alias
371+
from the type to the correct service id (see :ref:`autowiring-interface-alias`).
373372

374373
If you want ``Rot13Transformer`` to be the service that's used for autowiring, create
375374
that alias:

0 commit comments

Comments
 (0)