Skip to content

[9.x] Handle Symfony defaultName deprecation#41555

Merged
taylorotwell merged 4 commits into9.xfrom
handle-console-deprecations
Mar 18, 2022
Merged

[9.x] Handle Symfony defaultName deprecation#41555
taylorotwell merged 4 commits into9.xfrom
handle-console-deprecations

Conversation

@driesvints
Copy link
Member

This PR adds handling for Symfony's deprecated $defaultName property on console commands in the upcoming Symfony 6.1 release. To mitigate deprecation notices we'll need to implement the new AsCommand attribute that ships with Symfony v6.

See the related Symfony PR: symfony/symfony#45361
And issue: symfony/symfony#43600

Merging this into master will fix our failing tests there. After this is merged on master, I'll take the additional step to remove all $defaultName properties.

We'll also need to do this for all first party libraries that make use of the $defaultName property. Additionally, all apps and packages that make use of the $defaultName property will need to migrate to this new syntax.

@driesvints driesvints marked this pull request as ready for review March 18, 2022 10:01
@taylorotwell taylorotwell merged commit d2fb4a7 into 9.x Mar 18, 2022
@taylorotwell taylorotwell deleted the handle-console-deprecations branch March 18, 2022 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants