Repository navigation
doc: describe the types listed by Symfony's debug:autowiring command - #8633
Conversation
861829a to
3b77002
Compare
|
I dropped the hints I had added on WDYT of deprecating the FQCN aliases of final classes that implement an interface, in favor of named aliases on the interface? Eg public function __construct(
#[Target('persist')] private ProcessorInterface $processor,
) {
}
|
|
Indeed, let's do this! One catch though: I see two options:
#[Target('ormPersist')] private ProcessorInterface $processor,
#[Target('odmItem')] private ProviderInterface $provider,
#[Target('api_platform.doctrine.orm.state.persist_processor')] private ProcessorInterface $processor,I prefer 1, 2 is basically |
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.