Skip to content

[DependencyInjection] Document resource tags for auto-discovered serv…#21829

Open
lacatoire wants to merge 2 commits intosymfony:7.4from
lacatoire:docs/di-resource-tags
Open

[DependencyInjection] Document resource tags for auto-discovered serv…#21829
lacatoire wants to merge 2 commits intosymfony:7.4from
lacatoire:docs/di-resource-tags

Conversation

@lacatoire
Copy link
Copy Markdown
Contributor

@lacatoire lacatoire commented Jan 31, 2026

This PR documents the ability to add resource tags to auto-discovered services using:

  • The #[AutoconfigureResourceTag] attribute
  • The resource_tags configuration option in YAML/XML/PHP

Resource tags only apply to services loaded via the resource directive, not to explicitly defined services.

Fixes #21333

@lacatoire lacatoire force-pushed the docs/di-resource-tags branch from f2e40d1 to 7d37587 Compare February 10, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants