Skip to content

Commit c2b17b0

Browse files
authored
alias ref in autowiring doc
1 parent 7a7d871 commit c2b17b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service_container/autowiring.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ Suppose you create a second class - ``UppercaseTransformer`` that implements
408408
If you register this as a service, you now have *two* services that implement the
409409
``App\Util\TransformerInterface`` type. Autowiring subsystem can not decide
410410
which one to use. Remember, autowiring isn't magic; it looks for a service
411-
whose id matches the type-hint. So you need to choose one by creating an alias
412-
from the type to the correct service id (see :ref:`autowiring-interface-alias`).
411+
whose id matches the type-hint. So you need to choose one by :ref:`creating an alias
412+
<autowiring-interface-alias>` from the type to the correct service id.
413413
Additionally, you can define several named autowiring aliases if you want to use
414414
one implementation in some cases, and another implementation in some
415415
other cases.

0 commit comments

Comments
 (0)