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

[FrameworkBundle][Serializer] Add TranslatableNormalizer #50212

Merged
merged 1 commit into from Aug 1, 2023

Conversation

Jean-Beru
Copy link
Contributor

@Jean-Beru Jean-Beru commented May 2, 2023

Q A
Branch? 6.4
Bug fix? no
New feature? yes
Deprecations? maybe
Tickets
License MIT
Doc PR WIP

In 5.2, Symfony introduced translatable objects. This PR adds a dedicated normalizer to translate them. It can be useful for an API to return translated properties.

Also I'm wondering if it could be considered as a BC break since translatable objects were handled by the ObjectNormalizer which currently returns a plain object.

@carsonbot
Copy link

Hey!

Thanks for your PR. You are targeting branch "6.3" but it seems your PR description refers to branch "6.4".
Could you update the PR description or change target branch? This helps core maintainers a lot.

Cheers!

Carsonbot

@carsonbot carsonbot changed the title [Serializer][FrameworkBundle] Add TranslatableNormalizer [FrameworkBundle][Serializer] Add TranslatableNormalizer May 2, 2023
@nicolas-grekas nicolas-grekas modified the milestones: 6.3, 6.4 May 23, 2023
@Jean-Beru Jean-Beru force-pushed the feat/serializer-add-translatable branch from 4f15638 to 4b56a42 Compare July 27, 2023 14:32
@fabpot
Copy link
Member

fabpot commented Aug 1, 2023

Thank you @Jean-Beru.

@fabpot fabpot force-pushed the feat/serializer-add-translatable branch from 1dcaebe to 1ac8a2b Compare August 1, 2023 12:39
@fabpot fabpot merged commit f40687e into symfony:6.4 Aug 1, 2023
0 of 2 checks passed
@Jean-Beru Jean-Beru deleted the feat/serializer-add-translatable branch August 1, 2023 12:44
This was referenced Oct 21, 2023
fabpot added a commit that referenced this pull request Oct 28, 2023
…lizer, add to changelog (xabbuh)

This PR was merged into the 6.4 branch.

Discussion
----------

[Serializer] throw better exception in TranslatableNormalizer, add to changelog

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        |
| License       |

follows #50212

Commits
-------

d8a03d1 throw better exception in TranslatableNormalizer, add to changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants