Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Serializer] Custom normalizer update#18603

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

Conversation

alexandre-daubois
Copy link
Member

Last PR toresolve#18507

@javiereguiluz
Copy link
Member

Yes! Alex, thanks a lot for taking care of the last pending change of#18507 👏

alexandre-daubois reacted with rocket emoji

javiereguiluz added a commit that referenced this pull requestJul 24, 2023
This PR was merged into the 7.0 branch.Discussion----------[Serializer] Custom normalizer updateLast PR toresolve#18507Commits-------0fd8f8f [Serializer] Custom normalizer update
@jennevdmeer
Copy link
Contributor

jennevdmeer commentedAug 24, 2023
edited
Loading

Bit late to the party but am I missing something (have not tried 7.0) but this example would not work? Looking at the serializer class in 7.0 it seems nothing has changed about its behavior.
https://github.com/symfony/symfony/blob/8105a092b16a10d704f0e64b1194f0d0ea0234b3/src/Symfony/Component/Serializer/Serializer.php#L92-L94

You mention it yourself in#18779. But then usingNormalizerAwareInterface/NormalizerAwareTrait would still set theSerializer class instance for the normalizer property resulting in the custom normalizer supporting$data recursively being called when you manually call$this->normalizer->normalize($data) in the normalize function.

I could not find anything about a PR that changes this to work well in 7.0 so should this be in here? At the least it should be a valid example with a "workaround" not?

Related things

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
7.0
Development

Successfully merging this pull request may close these issues.

4 participants
@alexandre-daubois@javiereguiluz@jennevdmeer@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp