8000 Update tags.rst · symfony/symfony-docs@0aaf48b · GitHub
[go: up one dir, main page]

Skip to content

Commit 0aaf48b

Browse files
authored
Update tags.rst
1 parent 71158f8 commit 0aaf48b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service_container/tags.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,14 +468,14 @@ constructor argument to the ``App\HandlerCollection`` service:
468468
$container->register(\App\Handler\One::class)
469469
->addTag('app.handler');
470470
471-
$container->register(\App\Handler\One::class)
471+
$container->register(\App\Handler\Two::class)
472472
->addTag('app.handler');
473473
474474
$container->register(\App\HandlerCollection::class)
475475
// inject all services tagged with app.handler as first argument
476476
->addArgument(new TaggedIteratorArgument('app.handler'));
477477
478-
After compilation the `HandlerCollection` service is able to iterate over your application handlers.
478+
After compilation the ``HandlerCollection`` service is able to iterate over your application handlers.
479479

480480
.. code-block:: php
481481

0 commit comments

Comments
 (0)
0