File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -456,6 +456,10 @@ compiler pass just for that.
456
456
In the following example, all services tagged with ``app.handler `` are passed as
457
457
first constructor argument to the ``App\HandlerCollection `` service:
458
458
459
+ .. deprecated :: 4.4
460
+
461
+ ``tagged `` has been deprecated since version 4.4 and will be removed in 5.0. Use ``tagged_iterator `` instead.
462
+
459
463
.. configuration-block ::
460
464
461
465
.. code-block :: yaml
@@ -470,7 +474,7 @@ first constructor argument to the ``App\HandlerCollection`` service:
470
474
471
475
App\HandlerCollection :
472
476
# inject all services tagged with app.handler as first argument
473
- arguments : [!tagged app.handler]
477
+ arguments : [!tagged_iterator app.handler]
474
478
475
479
.. code-block :: xml
476
480
@@ -492,7 +496,7 @@ first constructor argument to the ``App\HandlerCollection`` service:
492
496
493
497
<service id =" App\HandlerCollection" >
494
498
<!-- inject all services tagged with app.handler as first argument -->
495
- <argument type =" tagged " tag =" app.handler" />
499
+ <argument type =" tagged_iterator " tag =" app.handler" />
496
500
</service >
497
501
</services >
498
502
</container >
You can’t perform that action at this time.
0 commit comments