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
-------
b653adf [DependencyInjection] Deprecate `#[MapDecorated]` in favor of `#[AutowireDecorated]`
Copy file name to clipboardExpand all lines: UPGRADE-6.3.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ DependencyInjection
12
12
13
13
* Deprecate `PhpDumper` options `inline_factories_parameter` and `inline_class_loader_parameter`, use `inline_factories` and `inline_class_loader` instead
14
14
* Deprecate undefined and numeric keys with `service_locator` config, use string aliases instead
15
+
* Deprecate `#[MapDecorated]`, use `#[AutowireDecorated]` instead
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