protected function getClient(array $config): Client
    {
        $client = Client::create($config['url']);

        $client->authenticate(
            $config['token'],
            array_get($config, 'method', Client::AUTH_URL_TOKEN),
            array_get($config, 'sudo', null)
        );

        return $client;
    }
protected function getClient(array $config): Client
    {
        $client = Client::create($config['url']);

        $client->authenticate(
            $config['token'],
            array_get($config, 'method', Client::AUTH_URL_TOKEN),
            array_get($config, 'sudo', null)
        );

        return $client;
    }
protected function getClient ( array $ config ) : Client { $ client = Client :: create ( $ config [ 'url' ] ) ; $ client -> authenticate ( $ config [ 'token' ] , array_get ( $ config , 'method' , Client :: AUTH_URL_TOKEN ) , array_get ( $ config , 'sudo' , null ) ) ; return $ client ; }
Get the main client.

@param array $config

@return \Gitlab\Client
Get the main client .