-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Serializer not work without PropertyAccess component #24553
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
Comments
Related to #20588, but slightly different |
fabpot
added a commit
that referenced
this issue
Oct 16, 2017
…'t installed (dunglas) This PR was squashed before being merged into the 2.7 branch (closes #24563). Discussion ---------- [Serializer] ObjectNormalizer: throw if PropertyAccess isn't installed | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget to update UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | #24553 | License | MIT | Doc PR | n/a Commits ------- b5246a7 [Serializer] ObjectNormalizer: throw if PropertyAccess isn't installed
I still can't use it.
I tried to remove
but no results |
Got it. I should move compiler pass from kernel to separate class and set priority to maximum (execute before object.normalizer tag pass)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FrameworkBundle assumes that
PropertyAccess
component is presenthttps://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php#L139
We need to add it as a dependency or optionally register
serializer.normalizer.object
serviceThe text was updated successfully, but these errors were encountered: