Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdea6fd0

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 !taggedFixes#11706Feature PR:symfony/symfony#31321Commits-------65263e1 [DI] Add deprecation info for !tagged
2 parentsff0bb8c +65263e1 commitdea6fd0

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
<serviceid="App\HandlerCollection">
494498
<!-- inject all services tagged with app.handler as first argument-->
495-
<argumenttype="tagged"tag="app.handler"/>
499+
<argumenttype="tagged_iterator"tag="app.handler"/>
496500
</service>
497501
</services>
498502
</container>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp