fix(openapi): don't inherit name converter from a possibly-missing Symfony parent#8386
Merged
soyuka merged 1 commit intoJul 8, 2026
Merged
Conversation
…g Symfony parent api-platform#8360 defined api_platform.openapi.name_converter as a child of serializer.name_converter.metadata_aware.abstract, but that abstract parent does not exist when no name converter is configured, breaking container compilation. Define the service directly as a MetadataAwareNameConverter instead, keeping the same intent (isolated from the global name converter). Fixes api-platform#8385
bobvandevijver
added a commit
to bolt/core
that referenced
this pull request
Jul 8, 2026
GSadee
added a commit
to Sylius/Sylius
that referenced
this pull request
Jul 9, 2026
| Q | A |-----------------|----- | Branch? | 2.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | api-platform/core#8386 | License | MIT Conflict with api-platform/symfony:4.3.16, it registers `api_platform.openapi.name_converter` under a non-existent Symfony 6.4 parent service, breaking container compilation. Temporary until a fixed release is tagged. <!-- - Bug fixes must be submitted against the 2.2 branch - Features and deprecations must be submitted against the 2.3 branch - Make sure that the correct base branch is set To be sure you are not breaking any Backward Compatibilities, check the documentation: https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html -->
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.
#8360 defined
api_platform.openapi.name_converteras a child of Symfony'sserializer.name_converter.metadata_aware.abstract. That abstract parent does not exist when no name converter is configured, so the container fails to compile:Define the service directly as a
MetadataAwareNameConverterwith only the class metadata factory, keeping the same intent as #8360 (metadata-aware, isolated from the global name converter) without depending on an internal, version-dependent Symfony abstract definition.Added a DI extension test asserting the service is a concrete
MetadataAwareNameConverterdefinition and not a child of the missing parent.