-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Add visibility context option in PropertyNormalizer #44902
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
Add visibility context option in PropertyNormalizer #44902
Conversation
Hey! I think @alexandre-daubois has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php
Outdated
Show resolved
Hide resolved
@mtarld I made changes and add more flexibility |
src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php
Outdated
Show resolved
Hide resolved
@alamirault That's an awesome addition I would love to have as part of the property normalizer. |
a236feb
to
d21315e
Compare
We need core member review. Maybe @dunglas ? (Failed tests are not related) |
Thank you @alamirault. |
d21315e
to
8997aee
Compare
This PR is an attempt to fix #39143 request.
It allows to control which object property visibility we want to normalize. By defaut publuc, protected and private properties are normalized but sometime only public are enough
if it's ok for you, I will create PR for docs