From 0d75a9855d5a9fa6f94885da33248e9a2af7908e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20H=C3=A9lias?= Date: Sun, 4 Oct 2020 16:59:30 +0200 Subject: [PATCH] [DI] replace tagged by tagged_iterator --- service_container/tags.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service_container/tags.rst b/service_container/tags.rst index 79d8cc85755..db0501182bc 100644 --- a/service_container/tags.rst +++ b/service_container/tags.rst @@ -679,7 +679,7 @@ in the configuration of the collecting service: https://symfony.com/schema/dic/services/services-1.0.xsd"> - + @@ -708,7 +708,7 @@ Tagged Services with Index If you want to retrieve a specific service within the injected collection you can use the ``index_by`` and ``default_index_method`` options of the -argument in combination with ``!tagged``. +argument in combination with ``!tagged_iterator``. Using the previous example, this service configuration creates a collection indexed by the ``key`` attribute: