Skip to content

Commit 712d0f4

Browse files
committed
[DI] Update code examples to use tagged_iterator
1 parent db653d2 commit 712d0f4

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
@@ -474,7 +474,7 @@ first constructor argument to the ``App\HandlerCollection`` service:
474474
475475
App\HandlerCollection:
476476
# inject all services tagged with app.handler as first argument
477-
arguments: [!tagged app.handler]
477+
arguments: [!tagged_iterator app.handler]
478478
479479
.. code-block:: xml
480480
@@ -496,7 +496,7 @@ first constructor argument to the ``App\HandlerCollection`` service:
496496
497497
<service id="App\HandlerCollection">
498498
<!-- inject all services tagged with app.handler as first argument -->
499-
<argument type="tagged" tag="app.handler"/>
499+
<argument type="tagged_iterator" tag="app.handler"/>
500500
</service>
501501
</services>
502502
</container>

0 commit comments

Comments
 (0)