From fd73c0b981726c5e9763ec9d95c0962723e29b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandru=20N=C4=83stase?= Date: Sat, 23 Nov 2019 21:09:40 +0100 Subject: [PATCH] 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 --- service_container/tags.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service_container/tags.rst b/service_container/tags.rst index b85ce4fb300..ffb297c52cb 100644 --- a/service_container/tags.rst +++ b/service_container/tags.rst @@ -553,7 +553,7 @@ first constructor argument to the ``App\HandlerCollection`` service: $services->set(App\HandlerCollection::class) // inject all services tagged with app.handler as first argument - ->args([tagged('app.handler')]) + ->args([tagged_iterator('app.handler')]) ; };