Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy console commands #839

Merged
merged 1 commit into from
Jul 30, 2019
Merged

Conversation

vudaltsov
Copy link
Contributor

Q A
Type improvement
BC Break no

Since Symfony 3.4 console commands can be lazy thanks to a static name property.
This change does not break BC because the BC layer is already in the base command's constructor.

@vudaltsov
Copy link
Contributor Author

I will do this in other doctrine repos soon.

Copy link
Contributor

@localheinz localheinz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@greg0ire
Copy link
Member

Since Symfony 3.4 console commands can be lazy thanks to a static name property.
This change does not break BC because the BC layer is already in the base command's constructor.

This explanation is perfect, and should be included in your commit message.

@alcaeus alcaeus self-assigned this Jul 30, 2019
@alcaeus alcaeus added this to the 2.2.0 milestone Jul 30, 2019
@alcaeus
Copy link
Member

alcaeus commented Jul 30, 2019

Thanks @vudaltsov!

@alcaeus alcaeus merged commit 85e30d8 into doctrine:master Jul 30, 2019
@vudaltsov vudaltsov deleted the lazy-console-commands branch July 30, 2019 19:37
mbrodala added a commit to mbrodala/typo3-ext-migrations that referenced this pull request Mar 23, 2020
Due to some logic in Symfony "Command" the default name of extended
commands is not used in the extending command. So we need to copy all of
them.

See doctrine/migrations#839
And symfony/symfony#23887
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants