8000 minor #12681 Replace tagged with tagged_iterator for service tagging … · symfony/symfony-docs@b798b26 · GitHub
[go: up one dir, main page]

Skip to content

Commit b798b26

Browse files
committed
minor #12681 Replace tagged with tagged_iterator for service tagging PHP example (alexandrunastase)
This PR was merged into the 4.4 branch. Discussion ---------- Replace tagged with tagged_iterator for service tagging PHP example Replace tagged with tagged_iterator for service tagging PHP example. Since 'tagged' will be eventually deprecated it would be better to show an example using tagged_iterator instead <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- fd73c0b Replace tagged with tagged_iterator for service tagging PHP example
2 parents c681bd7 + fd73c0b commit b798b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service_container/tags.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ first constructor argument to the ``App\HandlerCollection`` service:
553553
554554
$services->set(App\HandlerCollection::class)
555555
// inject all services tagged with app.handler as first argument
556-
->args([tagged('app.handler')])
556+
->args([tagged_iterator('app.handler')])
557557
;
558558
};
559559

0 commit comments

Comments
 (0)
0