src/Provider/GitlabResourceOwner.php
public function getApiClient()
    {
        if (!class_exists('\\Gitlab\\Client')) {
            throw new \LogicException(__METHOD__ . ' requires package m4tthumphrey/php-gitlab-api to be installed and autoloaded'); // @codeCoverageIgnore
        }
        $client = \Gitlab\Client::create(rtrim($this->domain, '/') . self::PATH_API);

        return $client->authenticate($this->token->getToken(), Client::AUTH_OAUTH_TOKEN);
    }
public function getApiClient()
    {
        if (!class_exists('\\Gitlab\\Client')) {
            throw new \LogicException(__METHOD__ . ' requires package m4tthumphrey/php-gitlab-api to be installed and autoloaded'); // @codeCoverageIgnore
        }
        $client = \Gitlab\Client::create(rtrim($this->domain, '/') . self::PATH_API);

        return $client->authenticate($this->token->getToken(), Client::AUTH_OAUTH_TOKEN);
    }
public function getApiClient ( ) { if ( ! class_exists ( '\\Gitlab\\Client' ) ) { throw new \ LogicException ( __METHOD__ . ' requires package m4tthumphrey/php-gitlab-api to be installed and autoloaded' ) ; // @codeCoverageIgnore } $ client = \ Gitlab \ Client :: create ( rtrim ( $ this -> domain , '/' ) . self :: PATH_API ) ; return $ client -> authenticate ( $ this -> token -> getToken ( ) , Client :: AUTH_OAUTH_TOKEN ) ; }
Returns an authenticated API client.

Requires optional Gitlab API client to be installed.

@return Client
Returns an authenticated API client .