-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Serializer] Fatal error: Class 'Symfony\Component\PropertyAccess\PropertyAccess' not found #20588
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
Hmm I guess the docs say that you need to add the dependency on property access yourself if you want to use that normalizer. |
super bad. |
Hmm, seems we could probably add a check for the class a better exception if it's not found. @dunglas there are quite a few optional deps inside |
Why not, but it's already explicitly stated in the |
We are throwing specific exception for such cases in other places in the framework, I think it's better than having a PHP error. By the way, the |
Ok I'll open a PR to add exceptions. |
Thanks guys! |
friendly reminder @dunglas |
@nicolas-grekas the related PR has already been merged #24563. Closing. |
Using
symfony/serializer: "~3.1"
in my project and got that error when using the ObjectNormalizer. Seems that serializer component is dependent on PropertyAccess but there's no requirement in composer.The text was updated successfully, but these errors were encountered: