Gush\ThirdParty\Gitlab\GitLabFactory::getGitLabClient PHP Method

getGitLabClient() protected static method

protected static getGitLabClient ( string $url ) : Gitlab\Client
$url string
return Gitlab\Client
    protected static function getGitLabClient($url)
    {
        if (null === static::$client || static::$client->getBaseUrl() !== $url) {
            static::$client = new Client(trim($url, '/') . '/');
        }
        return static::$client;
    }