Bugsnag\BugsnagLaravel\BugsnagServiceProvider::getGuzzle PHP Method

getGuzzle() protected method

Get the guzzle client instance.
protected getGuzzle ( array $config ) : GuzzleHttp\ClientInterface
$config array
return GuzzleHttp\ClientInterface
    protected function getGuzzle(array $config)
    {
        $options = [];
        if (isset($config['proxy']) && $config['proxy']) {
            if (isset($config['proxy']['http']) && php_sapi_name() != 'cli') {
                unset($config['proxy']['http']);
            }
            $options['proxy'] = $config['proxy'];
        }
        return Client::makeGuzzle(isset($config['endpoint']) ? $config['endpoint'] : null, $options);
    }