public function connectAction()
    {
        // will redirect to Facebook!
        $scope = $this->getParameter('scope_auth');
        if(!isset($scope)){
            $scope = [];
        }

        return $this->get('oauth2.registry')
            ->getClient('google_main') // key used in config.yml
            ->redirect($scope);
    }
public function connectAction()
    {
        // will redirect to Facebook!
        $scope = $this->getParameter('scope_auth');
        if(!isset($scope)){
            $scope = [];
        }

        return $this->get('oauth2.registry')
            ->getClient('google_main') // key used in config.yml
            ->redirect($scope);
    }
public function connectAction ( ) { // will redirect to Facebook! $ scope = $ this -> getParameter ( 'scope_auth' ) ; if ( ! isset ( $ scope ) ) { $ scope = [ ] ; } return $ this -> get ( 'oauth2.registry' ) -> getClient ( 'google_main' ) // key used in config.yml -> redirect ( $ scope ) ; }
Link to this controller to start the "connect" process

@Route("/login", name="login")
Link to this controller to start the connect process