Skip to content

fix(symfony): use AsCommand description parameter for console commands#7763

Merged
soyuka merged 2 commits intoapi-platform:4.2from
soyuka:graphql
Feb 18, 2026
Merged

fix(symfony): use AsCommand description parameter for console commands#7763
soyuka merged 2 commits intoapi-platform:4.2from
soyuka:graphql

Conversation

@soyuka
Copy link
Member

@soyuka soyuka commented Feb 16, 2026

Q A
Branch? 4.2
Tickets Closes #7616
License MIT
Doc PR

Move command descriptions from configure() to AsCommand attribute to follow Symfony 6+ best practices and eliminate deprecation warnings in Symfony 8.

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Tickets       | Closes api-platform#7616
| License       | MIT
| Doc PR        | ∅

Move command descriptions from configure() to AsCommand attribute to follow
Symfony 6+ best practices and eliminate deprecation warnings in Symfony 8.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@soyuka soyuka changed the base branch from main to 4.2 February 16, 2026 10:09
The shortName 'ItemRecipe' was causing @type to be incorrect in JSON-LD output.
Removing it allows the class name 'Recipe' to be used correctly.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@soyuka soyuka merged commit f0b3559 into api-platform:4.2 Feb 18, 2026
129 of 130 checks passed
@soyuka soyuka deleted the graphql branch February 18, 2026 14:56
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.

GraphQlExportCommand uses deprecated getDefaultName() - breaks with Symfony 8

1 participant

Comments