Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Add visibility context option in PropertyNormalizer#44902
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedJan 4, 2022
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 OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
alamirault commentedJun 7, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@mtarld I made changes and add more flexibility |
src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
christian-kolb commentedJun 28, 2022
@alamirault That's an awesome addition I would love to have as part of the property normalizer. |
a236feb tod21315eCompareWe need core member review. Maybe@dunglas ? (Failed tests are not related) |
Thank you@alamirault. |
d21315e to8997aeeCompare
Uh oh!
There was an error while loading.Please reload this page.
This PR is an attempt tofix#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