Skip to content

[Live] migrate Hydration system to standard Symfony normalizers #263

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

Merged
merged 1 commit into from
Feb 14, 2022

Conversation

kbond
Copy link
Member

@kbond kbond commented Feb 2, 2022

Q A
Bug fix? no
New feature? yes
Tickets n/a
License MIT

This removes our custom hydration system and uses symfony/serializer directly. Hydrators are now just (de)normalizer's registered with Symfony as normal.

The serializer context (['live-component' => true]) can be used to restrict (de)normalizers to just live component properties.

@kbond kbond changed the title [Live] migrate Hydration system to standard Symfony normalizers [WIP][Live] migrate Hydration system to standard Symfony normalizers Feb 3, 2022
@kbond kbond force-pushed the live-normalizer branch 2 times, most recently from 09de631 to 93aaa37 Compare February 11, 2022 16:39
@kbond kbond changed the title [WIP][Live] migrate Hydration system to standard Symfony normalizers [Live] migrate Hydration system to standard Symfony normalizers Feb 11, 2022
@kbond kbond requested a review from weaverryan February 11, 2022 16:47
@weaverryan
Copy link
Member

Seems very resonable and makes custom code unnecessary. Let's give it a try - thanks Kevin!

@weaverryan weaverryan merged commit c27fa19 into symfony:2.x Feb 14, 2022
@kbond kbond deleted the live-normalizer branch February 14, 2022 13:17
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.

2 participants