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

Commit0d75a98

Browse files
committed
[DI] replace tagged by tagged_iterator
1 parenta113e73 commit0d75a98

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
@@ -679,7 +679,7 @@ in the configuration of the collecting service:
679679
https://symfony.com/schema/dic/services/services-1.0.xsd">
680680
<services>
681681
<serviceid="App\HandlerCollection">
682-
<argumenttype="tagged"tag="app.handler"default-priority-method="getPriority"/>
682+
<argumenttype="tagged_iterator"tag="app.handler"default-priority-method="getPriority"/>
683683
</service>
684684
</services>
685685
</container>
@@ -708,7 +708,7 @@ Tagged Services with Index
708708

709709
If you want to retrieve a specific service within the injected collection
710710
you can use the ``index_by`` and ``default_index_method`` options of the
711-
argument in combination with ``!tagged``.
711+
argument in combination with ``!tagged_iterator``.
712712

713713
Using the previous example, this service configuration creates a collection
714714
indexed by the ``key`` attribute:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp