Migrate bin/openapi to Symfony Console#1977
Open
yceruto wants to merge 8 commits intozircote:masterfrom
Open
Conversation
b2fde19 to
3c34378
Compare
DerManoMann
requested changes
Mar 16, 2026
Collaborator
DerManoMann
left a comment
There was a problem hiding this comment.
Some minor bits, but looking very nice already!
yceruto
commented
Mar 16, 2026
Author
|
It seems cs failures are unrelated to this changes |
Collaborator
|
Looks like I might need to update master with some changes for the latest cs-fixer :/ Edit: Although locally it passes - hmmm. |
Collaborator
|
Eh, its rector; trips me up every time! |
Collaborator
|
@yceruto I've updated |
# Conflicts: # src/Loggers/ConsoleLogger.php
…ing and integrate SymfonyStyle for enhanced user feedback
… for format handling and improve option descriptions
… and simplify path exclusion handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrate
bin/openapifrom a 270-line standalone script with manual argument parsing to a Symfony Console application, leveraging modern Symfony 8.0 features:#[AsCommand]attribute for command metadata#[MapInput]with aGenerateInputDTO for declarative input definition#[Argument]/#[Option]attributes on DTO properties__invoke()ConsoleLoggerwith Symfony'sConsoleLoggerSymfonyStylefor user-facing output (defaults, bootstrap info)All existing CLI behavior is preserved (output format, exit codes, processor management, comma-separated exclude deprecation warning).
Type of Change
Related Issues
Part of #1953