-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Add forward compatibility layer for symfony/console >7.4 #12445
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
Conversation
dc624c1 to
d6e96f9
Compare
|
failing test looks flaky. unrelated |
|
Thanks |
| if (method_exists($app, 'addCommand')) { | ||
| $app->addCommand($cmd); | ||
| } else { | ||
| // Compatibility layer for symfony/console <7.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: move the comment before the if block, since the whole block is actually the compatibility layer.
| return $installer->run(); | ||
| }); | ||
| $application->add($install); | ||
| method_exists($application, 'addCommand') ? $application->addCommand($install) : $application->add($install); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line doesn't have a comment like the other ones.
| return $installer->run(); | ||
| }); | ||
| $application->add($update); | ||
| method_exists($application, 'addCommand') ? $application->addCommand($update) : $application->add($update); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line doesn't have a comment like the other ones.
Following symfony/symfony#60394. Please tell me if this should rather target main