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.
1 parenta113e73 commit0d75a98Copy full SHA for 0d75a98
service_container/tags.rst
@@ -679,7 +679,7 @@ in the configuration of the collecting service:
679
https://symfony.com/schema/dic/services/services-1.0.xsd">
680
<services>
681
<serviceid="App\HandlerCollection">
682
- <argumenttype="tagged"tag="app.handler"default-priority-method="getPriority"/>
+ <argumenttype="tagged_iterator"tag="app.handler"default-priority-method="getPriority"/>
683
</service>
684
</services>
685
</container>
@@ -708,7 +708,7 @@ Tagged Services with Index
708
709
If you want to retrieve a specific service within the injected collection
710
you can use the ``index_by`` and ``default_index_method`` options of the
711
-argument in combination with ``!tagged``.
+argument in combination with ``!tagged_iterator``.
712
713
Using the previous example, this service configuration creates a collection
714
indexed by the ``key`` attribute: