FriendsOfSymfony / FOSRestBundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony
http://symfony.com/doc/master/bundles/FOSRestBundle/index.html
MIT License
2.8k stars 702 forks source link

Fatal error missing NormalizerInterface in project with JMS Serializer instead of Symfony Serializer #2218

Closed freezy-sk closed 4 years ago

freezy-sk commented 4 years ago

Running php bin/console cache:clear in project using JMS Serializer instead of Symfony Serializer throws

Fatal error: Interface 'Symfony\Component\Serializer\Normalizer\NormalizerInterface' not found in /var/www/html/vendor/friendsofsymfony/rest-bundle/Serializer/Normalizer/FormErrorNormalizer.php on line 22
friendsofsymfony/rest-bundle        2.7.4
jms/serializer-bundle               3.5.0
symfony/framework-bundle            v4.4.8
xabbuh commented 4 years ago

Do you still experience this error? If so, can you please create a small example application that allows to reproduce it?

freezy-sk commented 4 years ago

@xabbuh I tried it right now with fresh install of SF 4.4 with Rest bundle 2.7, 2.8, 3.0, JMS bundle 3.5 and SF 5.0 with Rest bundle 2.7, 2.8, 3.0, JMS bundle 3.5 and it works correctly everywhere. I don't remember in which one of my projects I was experiencing this, so I can't find related config files. Closing this issue as it's not possible to reproduce it.