Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: pass serialization context to name converter #2167

Merged
merged 10 commits into from
Jan 2, 2024

Conversation

DjordyKoert
Copy link
Collaborator

@DjordyKoert DjordyKoert commented Dec 14, 2023

I currently have a custom name converter inside of my own project which implements Symfony's AdvancedNameConverterInterface class. Currently it's impossible to pass the serialization context to the model generation because only the groups are passed currently.

This PR adds a new serializationContext property to the Model attribute which will be passed to the name converter.

@DjordyKoert DjordyKoert force-pushed the feat-pass-model-context branch from bbc5191 to b699725 Compare January 2, 2024 13:34
@DjordyKoert DjordyKoert force-pushed the feat-pass-model-context branch from 938b74c to f3bf3fe Compare January 2, 2024 13:40
@DjordyKoert DjordyKoert merged commit c55d9ef into nelmio:master Jan 2, 2024
12 checks passed
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