Skip to content

Drop symfony/console 7.4 requirement, restore attribute-free command def - #2196

Open
yceruto wants to merge 1 commit into
zircote:masterfrom
yceruto:yceruto/symfony-console-7.4-requirement-locks-the-librar
Open

yceruto wants to merge 1 commit into
zircote:masterfrom
yceruto:yceruto/symfony-console-7.4-requirement-locks-the-librar

Conversation

@yceruto

@yceruto yceruto commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Problem

The library required symfony/console ^7.4, even though only the CLI (bin/openapi) uses it. This locked out Symfony 6.4 LTS users, who are on a supported release, not an outdated one. It also blocked fixes like the schema examples array fix, which only landed in Console 6.8.1.

Solution

This PR lowers the symfony/console constraint and rewrites GenerateCommand and GenerateInput to use configure() and InputInterface instead of the #[MapInput], #[Argument], and #[Option] attributes, which required Console 7.3+. This keeps one code path for the CLI while letting library consumers depend on older, still-supported Console versions.

Refs #2180

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.

1 participant