File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -365,11 +365,10 @@ 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. 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
374373If you want ``Rot13Transformer `` to be the service that's used for autowiring, create
375374that alias:
You can’t perform that action at this time.
0 commit comments