protected function authSuccess($client)
    {
        if (!is_callable($this->successCallback)) {
            throw new InvalidConfigException('"' . get_class($this) . '::$successCallback" should be a valid callback.');
        }

        $response = call_user_func($this->successCallback, $client);
        if ($response instanceof Response) {
            return $response;
        }

        return $this->redirectSuccess();
    }
protected function authSuccess($client)
    {
        if (!is_callable($this->successCallback)) {
            throw new InvalidConfigException('"' . get_class($this) . '::$successCallback" should be a valid callback.');
        }

        $response = call_user_func($this->successCallback, $client);
        if ($response instanceof Response) {
            return $response;
        }

        return $this->redirectSuccess();
    }
protected function authSuccess ( $ client ) { if ( ! is_callable ( $ this -> successCallback ) ) { throw new InvalidConfigException ( '"' . get_class ( $ this ) . '::$successCallback" should be a valid callback.' ) ; } $ response = call_user_func ( $ this -> successCallback , $ client ) ; if ( $ response instanceof Response ) { return $ response ; } return $ this -> redirectSuccess ( ) ; }
This method is invoked in case of successful authentication via auth client.
@param ClientInterface $client auth client instance.
@throws InvalidConfigException on invalid success callback.
@return Response response instance.
This method is invoked in case of successful authentication via auth client .