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
feature #49642 [DependencyInjection] Deprecate #[MapDecorated] in favor of #[AutowireDecorated] (nicolas-grekas)
This PR was merged into the 6.3 branch.
Discussion
----------
[DependencyInjection] Deprecate `#[MapDecorated]` in favor of `#[AutowireDecorated]`
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | no
| New feature? | no
| Deprecations? | yes
| Tickets | -
| License | MIT
| Doc PR | -
`#[Map*]` are for controller argument resolvers.
`#[Autowire*]` should be used for autowiring (see #49628).
We could also rename `#[TaggedLocator]` and `#[TaggedIterator]` but I feel like the need is less obvious and the cost more important.
Commits
-------
b653adf426 [DependencyInjection] Deprecate `#[MapDecorated]` in favor of `#[AutowireDecorated]`
trigger_deprecation('symfony/dependency-injection', '6.3', 'The "%s" class is deprecated, use "%s" instead.', MapDecorated::class, AutowireDecorated::class);
15
+
16
+
/**
17
+
* @deprecated since Symfony 6.3, use AutowireDecorated instead
0 commit comments