From 9a0bce4ed861f939d9e16019600bb6d9d0362523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Fri, 20 Jun 2025 13:02:37 +0200 Subject: [PATCH 1/2] Remove references to TaggedIterator and TaggedLocator attributes --- reference/attributes.rst | 7 ------- service_container/service_subscribers_locators.rst | 8 -------- 2 files changed, 15 deletions(-) diff --git a/reference/attributes.rst b/reference/attributes.rst index eb09f4aa6bc..96f07bbc383 100644 --- a/reference/attributes.rst +++ b/reference/attributes.rst @@ -39,17 +39,10 @@ Dependency Injection * :ref:`AutowireServiceClosure ` * :ref:`Exclude ` * :ref:`Lazy ` -* :ref:`TaggedIterator ` -* :ref:`TaggedLocator ` * :ref:`Target ` * :ref:`When ` * :ref:`WhenNot ` -.. deprecated:: 7.1 - - The :class:`Symfony\\Component\\DependencyInjection\\Attribute\\TaggedIterator` - and :class:`Symfony\\Component\\DependencyInjection\\Attribute\\TaggedLocator` - attributes were deprecated in Symfony 7.1. EventDispatcher ~~~~~~~~~~~~~~~ diff --git a/service_container/service_subscribers_locators.rst b/service_container/service_subscribers_locators.rst index 9026478cf33..00fed5e3ff4 100644 --- a/service_container/service_subscribers_locators.rst +++ b/service_container/service_subscribers_locators.rst @@ -307,14 +307,6 @@ This is done by having ``getSubscribedServices()`` return an array of ]; } -.. deprecated:: 7.1 - - The :class:`Symfony\\Component\\DependencyInjection\\Attribute\\TaggedIterator` - and :class:`Symfony\\Component\\DependencyInjection\\Attribute\\TaggedLocator` - attributes were deprecated in Symfony 7.1 in favor of - :class:`Symfony\\Component\\DependencyInjection\\Attribute\\AutowireIterator` - and :class:`Symfony\\Component\\DependencyInjection\\Attribute\\AutowireLocator`. - .. note:: The above example requires using ``3.2`` version or newer of ``symfony/service-contracts``. From 0b5e512f12d16378075375ea8b79ab8a087478da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Fri, 20 Jun 2025 13:02:59 +0200 Subject: [PATCH 2/2] Remove unused use statement for TaggedIteratorArgument --- service_container/tags.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/service_container/tags.rst b/service_container/tags.rst index 3a547042de7..adc42bb40f9 100644 --- a/service_container/tags.rst +++ b/service_container/tags.rst @@ -1047,8 +1047,6 @@ you can define it in the configuration of the collecting service: // config/services.php namespace Symfony\Component\DependencyInjection\Loader\Configurator; - use Symfony\Component\DependencyInjection\Argument\TaggedIteratorArgument; - return function (ContainerConfigurator $container): void { $services = $container->services(); @@ -1138,7 +1136,6 @@ to index the services: use App\Handler\One; use App\Handler\Two; - use Symfony\Component\DependencyInjection\Argument\TaggedIteratorArgument; return function (ContainerConfigurator $container): void { $services = $container->services(); @@ -1242,7 +1239,6 @@ get the value used to index the services: namespace Symfony\Component\DependencyInjection\Loader\Configurator; use App\HandlerCollection; - use Symfony\Component\DependencyInjection\Argument\TaggedIteratorArgument; return function (ContainerConfigurator $container) { $services = $container->services();