Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[FrameworkBundle][Serializer] Allow serializer default context configuration#38542
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
src/Symfony/Component/Serializer/DependencyInjection/SerializerPass.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Serializer/DependencyInjection/SerializerPass.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Serializer/DependencyInjection/SerializerPass.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Serializer/DependencyInjection/SerializerPass.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
@soyuka what is the state of this PR ? |
soyuka commentedOct 22, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@stof I'm wondering as well, I'm really not sure that we've come to an agreement on what needs to be done. If the community knows exactly how we can go on, it'll be my pleasure to continue working on it! Do we actually want this feature? |
I'd like to use this feature. Currently to always expose extended datime format I override datetime normalizer context in compiler pass. |
I'm in favor of merging this feature |
Me too.@soyuka do you have time to finish it, or do you need help? |
No problem I'll finish this. About the code I should use |
yes 👍🏼 |
53e430b
to919719f
Compare919719f
to43d1ca5
CompareThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM 👍🏼
Thank you@soyuka. |
This allow to configure the
context
for normalizer's on a high level:This feature was asked inapi-platform/core#1764 (comment) and I thought it could be in symfony instead. The messenger component has the same configuration.
This re-opens#28927 (for discussion). I'm still unsure about the discussion in#28927 (comment) and what solution I should implement. Please let me know if you come to an agreement.