-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Serializer] Add special '*' serialization group that allows any group #33540
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
Conversation
981e0c4
to
256aac1
Compare
There 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.
Can you change the base branch to master and rebase?
src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
Outdated
Show resolved
Hide resolved
256aac1
to
905c7f3
Compare
I've implemented the change proposed by @stloyd based on the idea of @dunglas, rebased on master and fixed some tests. |
@nrobinaubertin Can you take @ogizanagi suggestion into account and fix the unit tests? Thank you. |
b2b6aaa
to
370f2c6
Compare
Done. I added two tests but the previous ones were already working. |
3c765c9
to
54e24a8
Compare
Thank you @nrobinaubertin. |
Could it be, that this important note: Symfony\Component\Serializer\Normalizer/AbstractNormalizer.php:250 has been overseen an the change not made to the extractor? |
Hi,
I added support for a special serialization group: '*'.
This group lets any group serialize the attribute marked with it.
The BC break comes from the fact that someone could have used the '*' group in their code.