Skip to content

Commit 8672801

Browse files
committed
minor #14337 [DI] replace tagged by tagged_iterator (maxhelias)
This PR was merged into the 4.4 branch. Discussion ---------- [DI] replace tagged by tagged_iterator introduce with #11009 cc @wouterj Commits ------- 0d75a98 [DI] replace tagged by tagged_iterator
2 parents a113e73 + 0d75a98 commit 8672801

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
@@ -679,7 +679,7 @@ in the configuration of the collecting service:
679679
https://symfony.com/schema/dic/services/services-1.0.xsd">
680680
<services>
681681
<service id="App\HandlerCollection">
682-
<argument type="tagged" tag="app.handler" default-priority-method="getPriority"/>
682+
<argument type="tagged_iterator" tag="app.handler" default-priority-method="getPriority"/>
683683
</service>
684684
</services>
685685
</container>
@@ -708,7 +708,7 @@ Tagged Services with Index
708708

709709
If you want to retrieve a specific service within the injected collection
710710
you can use the ``index_by`` and ``default_index_method`` options of the
711-
argument in combination with ``!tagged``.
711+
argument in combination with ``!tagged_iterator``.
712712

713713
Using the previous example, this service configuration creates a collection
714714
indexed by the ``key`` attribute:

0 commit comments

Comments
 (0)