8000 minor #11389 Swap aliases (greg0ire) · symfony/symfony-docs@5e1360b · GitHub
[go: up one dir, main page]

Skip to content

Commit 5e1360b

Browse files
committed
minor #11389 Swap aliases (greg0ire)
This PR was merged into the 4.2 branch. Discussion ---------- Swap aliases The comments above did not match. For the sake of explaining, it is better to put the named aliases first. Commits ------- 5052a37 Swap aliases
2 parents cf524db + 5052a37 commit 5e1360b

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
@@ -412,12 +412,12 @@ injection::
412412
# the ``App\Util\UppercaseTransformer`` service will be
413413
# injected when an ``App\Util\TransformerInterface``
414414
# type-hint for a ``$shoutyTransformer`` argument is detected.
415-
App\Util\TransformerInterface: '@App\Util\Rot13Transformer'
415+
App\Util\TransformerInterface $shoutyTransformer: '@App\Util\UppercaseTransformer'
416416
417417
# If the argument used for injection does not match, but the
418418
# type-hint still matches, the ``App\Util\Rot13Transformer``
419419
# service will be injected.
420-
App\Util\TransformerInterface $shoutyTransformer: '@App\Util\UppercaseTransformer'
420+
App\Util\TransformerInterface: '@App\Util\Rot13Transformer'
421421
422422
App\Service\TwitterClient:
423423
# the Rot13Transformer will be passed as the $transformer argument

0 commit comments

Comments
 (0)
0