Skip to content

Commit 0e74d26

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: alias ref in autowiring doc
2 parents b6da1f0 + 5e626cd commit 0e74d26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service_container/autowiring.rst

+2-2
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)