Skip to content

Commit a7f2bc4

Browse files
[DependencyInjection] Exclude referencing service (self) in TaggedIterator
1 parent 740e44f commit a7f2bc4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

service_container/tags.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,11 @@ iterator, add the ``exclude`` option:
692692

693693
The ``exclude`` option was introduced in Symfony 6.1.
694694

695+
.. versionadded:: 6.3
696+
697+
In the case the referencing service is itself tagged with the tag being used in the tagged
698+
iterator, it is automatically excluded from the injected iterable since Symfony 6.3.
699+
695700
.. seealso::
696701

697702
See also :doc:`tagged locator services </service_container/service_subscribers_locators>`

0 commit comments

Comments
 (0)