FriendsOfSymfony / FOSOAuthServerBundle

A server side OAuth2 Bundle for Symfony
1.09k stars 451 forks source link

With symfony 4.4 I'm getting Argument 1 passed to FOS\OAuthServerBundle\Entity\ClientManager::__construct() must be an instance of Doctrine\Common\Persistence\ObjectManager #686

Open pankujoshi opened 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 ContainerDvhWaed\EntityManager_9a5be93 given, called in C:\xampp\htdocs\rest_with_oauth\var\cache\dev\ContainerDvhWaed\srcApp_KernelDevDebugContainer.php on line 4362

image

kadryjanek commented 2 years ago

For SF4 please update FOSOAuthServerBundle to dev-master version. This version is using EntityManagerInterface instead of ObjectManager.