Skip to content

Conversation

@chalasr
Copy link
Contributor

@chalasr chalasr commented Jun 12, 2025

Following symfony/symfony#60394. Please tell me if this should rather target main

@chalasr chalasr force-pushed the console-add-fc branch 2 times, most recently from dc624c1 to d6e96f9 Compare June 12, 2025 21:40
@chalasr
Copy link
Contributor Author

chalasr commented Jun 12, 2025

failing test looks flaky. unrelated

@Seldaek Seldaek added this to the 2.8 milestone Jun 17, 2025
@Seldaek Seldaek merged commit a77e5f0 into composer:2.8 Jun 17, 2025
17 of 20 checks passed
@Seldaek
Copy link
Member

Seldaek commented Jun 17, 2025

Thanks

@chalasr chalasr deleted the console-add-fc branch June 17, 2025 13:19
if (method_exists($app, 'addCommand')) {
$app->addCommand($cmd);
} else {
// Compatibility layer for symfony/console <7.4
Copy link
Contributor

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);
Copy link
Contributor

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);
Copy link
Contributor

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.

Seldaek added a commit that referenced this pull request Aug 19, 2025
thibsy pushed a commit to thibsy/composer that referenced this pull request Aug 20, 2025
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.

3 participants