Closed
Description
I'm missing a possibility to set autowiring types of thirdparty (or framework) services.
I could imagine if one could set it using a service alias but not sure it's a good idea. Maybe there are better ways. It is probably already possible to set the autowiring type in a custom CompilerPass so maybe it's not a good idea at all. This would allow to do it in a configuration file.
Something like
<service id="app.annotation_reader" alias="annotation_reader">
<autowiring-type>Doctrine\Common\Annotations\Reader</autowiring-type>
</service>
Use case is probably obvious. One could use it in case PRs like https://github.com/symfony/symfony/pull/17782/files were rejected