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: