We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parentsebf693b +50bbacc commit966fa12Copy full SHA for 966fa12
service_container/autowiring.rst
@@ -412,12 +412,12 @@ injection::
412
# the ``App\Util\UppercaseTransformer`` service will be
413
# injected when an ``App\Util\TransformerInterface``
414
# type-hint for a ``$shoutyTransformer`` argument is detected.
415
-App\Util\TransformerInterface:'@App\Util\Rot13Transformer'
+App\Util\TransformerInterface $shoutyTransformer:'@App\Util\UppercaseTransformer'
416
417
# If the argument used for injection does not match, but the
418
# type-hint still matches, the ``App\Util\Rot13Transformer``
419
# service will be injected.
420
-App\Util\TransformerInterface $shoutyTransformer:'@App\Util\UppercaseTransformer'
+App\Util\TransformerInterface:'@App\Util\Rot13Transformer'
421
422
App\Service\TwitterClient:
423
# the Rot13Transformer will be passed as the $transformer argument