FriendsOfSymfony/FOSOAuthServerBundle

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

pankujoshi opened this issue · 1 comments

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

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