1b2801591e
This PR was merged into the 3.3-dev branch.
Discussion
----------
[DI] Deprecate autowiring-types in favor of aliases
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | yes
| Tests pass? | yes
| Fixed tickets | #21351, #19970, ~~#18040~~, ~~#17783~~
| License | MIT
| Doc PR | symfony/symfony-docs#7445
https://github.com/symfony/symfony/pull/21494/files?w=1
This PR deprecates autowiring-types and replaces them by plain aliases.
ping @dunglas @weaverryan
Eg instead of
```xml
<service id="annotations.reader" class="Doctrine\Common\Annotations\AnnotationReader" public="false">
<autowiring-type>Doctrine\Common\Annotations\Reader</autowiring-type>
</service>
```
just do:
```xml
<service id="annotations.reader" class="Doctrine\Common\Annotations\AnnotationReader" public="false" />
<service id="Doctrine\Common\Annotations\Reader" alias="annotations.reader" public="false" />
```
Commits
-------
|
||
---|---|---|
.. | ||
Bridge | ||
Bundle | ||
Component |