We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TaggedIterator
1 parent 740e44f commit dd613a8Copy full SHA for dd613a8
service_container/tags.rst
@@ -688,10 +688,20 @@ iterator, add the ``exclude`` option:
688
;
689
};
690
691
+.. note::
692
+
693
+ In the case the referencing service is itself tagged with the tag being used in the tagged
694
+ iterator, it is automatically excluded from the injected iterable.
695
696
.. versionadded:: 6.1
697
698
The ``exclude`` option was introduced in Symfony 6.1.
699
700
+.. versionadded:: 6.3
701
702
+ The automatic exclusion of the referencing service in the injected iterable was
703
+ introduced in Symfony 6.3.
704
705
.. seealso::
706
707
See also :doc:`tagged locator services </service_container/service_subscribers_locators>`
0 commit comments