src/Asg/SimpleSocialAuth/Providers/GooglePlus/GooglePlusProvider.php
/**
     * @param string $callbackUrl ;
     * @throws SocialAuthException
     * @throws SocialAuthInvalidParams
     */
@param string $callbackUrl ;
@throws SocialAuthException
@throws SocialAuthInvalidParams
@param string $callbackUrl ; @throws SocialAuthException @throws SocialAuthInvalidParams
public function login($callbackUrl = '')
    {
        $callbackUrl = !empty($callbackUrl)?$callbackUrl:$this->getCallbackUrl();
        if ($callbackUrl == '' || $callbackUrl == null){
            throw new SocialAuthInvalidParams('Callback url cant be empty');
        }
        if ($this->googleClient) {
            $this->sessionStorage->set('callbackUrl', $callbackUrl);
            $this->googleClient->setRedirectUri($callbackUrl);
            $this->googleClient->setScopes($this->options);
            $this->redirect($this->googleClient->createAuthUrl());
        }else{
            throw new SocialAuthException('Google_Client instance is null');
        }
    }
public function login ( $ callbackUrl = '' ) { $ callbackUrl = ! empty ( $ callbackUrl ) ? $ callbackUrl : $ this -> getCallbackUrl ( ) ; if ( $ callbackUrl == '' || $ callbackUrl == null ) { throw new SocialAuthInvalidParams ( 'Callback url cant be empty' ) ; } if ( $ this -> googleClient ) { $ this -> sessionStorage -> set ( 'callbackUrl' , $ callbackUrl ) ; $ this -> googleClient -> setRedirectUri ( $ callbackUrl ) ; $ this -> googleClient -> setScopes ( $ this -> options ) ; $ this -> redirect ( $ this -> googleClient -> createAuthUrl ( ) ) ; } else { throw new SocialAuthException ( 'Google_Client instance is null' ) ; } }
@param string $callbackUrl ;
 @throws SocialAuthException
 @throws SocialAuthInvalidParams
@param string $callbackUrl ; @throws SocialAuthException @throws SocialAuthInvalidParams