With SF 4.4 Argument 1 passed to FOS\OAuthServerBundle\Entity\ClientManager::__construct() must be an instance of Doctrine\Common\Persistence\ObjectManager #2345
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
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
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.