Skip to content

Commit 5e626cd

Browse files
committed
minor #20779 [DependencyInjection] Add label for ref in autowiring doc (MrYamous)
This PR was merged into the 6.4 branch. Discussion ---------- [DependencyInjection] Add label for ref in autowiring doc Tweak a bit the sentence to introduce a label for ref instead of the title of the same page Commits ------- c2b17b0 alias ref in autowiring doc
2 parents 7a7d871 + c2b17b0 commit 5e626cd

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)