get('oauth2.registry') ->getClient('github_main') ->redirect(); } /** * Github redirects to back here afterwards * * @return Response */ public function connectCheckAction() { return new RedirectResponse($this->generateUrl('connection_github')); } }