File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -365,9 +365,11 @@ Suppose you create a second class - ``UppercaseTransformer`` that implements
365365 }
366366
367367If you register this as a service, you now have *two * services that implement the
368- ``AppBundle\Util\TransformerInterface `` type. Symfony doesn't know which one should
369- be used for autowiring, so you need to choose one by creating an alias from the type
370- to the correct service id (see :ref: `autowiring-interface-alias `).
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 `).
371373
372374If you want ``Rot13Transformer `` to be the service that's used for autowiring, create
373375that alias:
You can’t perform that action at this time.
0 commit comments