Skip to content

Commit 65263e1

Browse files
jschaedlOskarStark
authored andcommitted
[DI] Add deprecation info for !tagged
1 parent ff0bb8c commit 65263e1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

service_container/tags.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,10 @@ compiler pass just for that.
456456
In the following example, all services tagged with ``app.handler`` are passed as
457457
first constructor argument to the ``App\HandlerCollection`` service:
458458

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+
459463
.. configuration-block::
460464

461465
.. code-block:: yaml
@@ -470,7 +474,7 @@ first constructor argument to the ``App\HandlerCollection`` service:
470474
471475
App\HandlerCollection:
472476
# inject all services tagged with app.handler as first argument
473-
arguments: [!tagged app.handler]
477+
arguments: [!tagged_iterator app.handler]
474478
475479
.. code-block:: xml
476480
@@ -492,7 +496,7 @@ first constructor argument to the ``App\HandlerCollection`` service:
492496
493497
<service id="App\HandlerCollection">
494498
<!-- 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"/>
496500
</service>
497501
</services>
498502
</container>

0 commit comments

Comments
 (0)