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.79k stars 703 forks source link

With SF 4.4 Argument 1 passed to FOS\OAuthServerBundle\Entity\ClientManager::__construct() must be an instance of Doctrine\Common\Persistence\ObjectManager #2345

Closed pankujoshi closed 2 years ago

pankujoshi commented 2 years ago

Argument 1 passed to FOS\OAuthServerBundle\Entity\ClientManager::__construct() must be an instance of Doctrine\Common\Persistence\ObjectManager, instance of ContainerFuBxdJb\EntityManager_9a5be93 given, called in C:\xampp\htdocs\rest2\var\cache\dev\ContainerFuBxdJb\srcApp_KernelDevDebugContainer.php on line 4451

image

I have install the oauth-server-bundle and created the REST Api with Oauth with the help of this Link: https://www.adcisolutions.com/knowledge/getting-started-rest-api-symfony-4 Now am facing this type error.

xabbuh commented 2 years ago

I think https://github.com/FriendsOfSymfony/FOSOAuthServerBundle would be the repo to report any issues with FOSAuthServerBundle.