You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symfony's debug:autowiring command displays the first line of the docblock of each autowirable type, as a hint about what the service is for. This PR adds or improves that line for the types this package registers for autowiring.
nicolas-grekas
changed the title
docs: describe the types listed by Symfony's debug:autowiring command
doc: describe the types listed by Symfony's debug:autowiring command
Oct 3, 2026
I dropped the hints I had added on PersistProcessor, RemoveProcessor and the UUID/ULID filters: these final classes are aliased by their FQCN, so debug:autowiring lists them as types to autowire. Type-hinting one breaks as soon as the service is decorated (TypeError, only lint:container catches it).
WDYT of deprecating the FQCN aliases of final classes that implement an interface, in favor of named aliases on the interface? Eg $container->registerAliasForArgument('api_platform.doctrine.orm.state.persist_processor', ProcessorInterface::class, 'persist') in the extension would let apps write:
debug:autowiring would then list the processors as variants of ProcessorInterface. That's what symfony/symfony#66568 does for Symfony's webhook parsers. The filter aliases point to abstract definitions and can't be autowired at all; symfony/symfony#66569 hides them from the listing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Symfony's
debug:autowiringcommand displays the first line of the docblock of each autowirable type, as a hint about what the service is for. This PR adds or improves that line for the types this package registers for autowiring.Same as symfony/symfony#66566, which does it for Symfony's own types.