Skip to content

Commit dea6fd0

Browse files
committed
minor #11708 [DI] Add deprecation info for !tagged (jschaedl)
This PR was submitted for the master branch but it was squashed and merged into the 4.4 branch instead (closes #11708). Discussion ---------- [DI] Add deprecation info for !tagged Fixes #11706 Feature PR: symfony/symfony#31321 Commits ------- 65263e1 [DI] Add deprecation info for !tagged
2 parents ff0bb8c + 65263e1 commit dea6fd0

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy