Skip to content

[AutowireLocator] Using #[AutowireLocator] with tagged class #20934

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 7.2
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update service_subscribers_locators.rst
  • Loading branch information
ay-git authored May 3, 2025
commit f97d7d466ffd77bed4ea9ef1ef6a07b4deb02a1e
8 changes: 5 additions & 3 deletions service_container/service_subscribers_locators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -397,15 +397,17 @@ attribute::
}
}

Another way to use
Using AutowireLocator with tagged class

Another way to use
:class:`Symfony\\Component\\DependencyInjection\\Attribute\\AutowireLocator`
attribute is location class tagged with a specific :doc:`tag </service_container/tags>`

Tagging allows you to add classes without having to explicitly list classes in
Tagging allows you to add classes without having to explicitly list classes in
:class:`Symfony\\Component\\DependencyInjection\\Attribute\\AutowireLocator`
attribute

It is also possible to use the #[AutoconfigureTag] attribute directly on the base class or interface and all classes implementing this interface will be automatically tagged and included in
It is also possible to use the #[AutoconfigureTag] attribute directly on the base class or interface and all classes implementing this interface will be automatically tagged and included in
:class:`Symfony\\Component\\DependencyInjection\\Attribute\\AutowireLocator`
attribute::

Expand Down