Skip to content

Commit fd73c0b

Browse files
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
1 parent 89f8e68 commit fd73c0b

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)