cURL timeout on heroku
I found a solution :
EventListener
$tokenController = new FOS\OAuthServerBundle\Controller\TokenController($this->oauth2); // $this->oauth2 is the @fos_oauth_server.server service$credentials = $tokenController->tokenAction($request);$response = $credentials->getContent();
This is just another solution to log in my API, whithout using cURL and the URL that give the token.