Bolt\Controller\Async\General::fetchNewsOptions PHP Method

fetchNewsOptions() private method

Get the guzzle options.
private fetchNewsOptions ( string $hostname ) : array
$hostname string
return array
    private function fetchNewsOptions($hostname)
    {
        $driver = $this->app['db']->getDatabasePlatform()->getName();
        $options = ['query' => ['v' => Bolt\Version::VERSION, 'p' => phpversion(), 'db' => $driver, 'name' => $hostname], 'connect_timeout' => 5, 'timeout' => 10];
        if ($this->getOption('general/httpProxy')) {
            $options['proxy'] = sprintf('%s:%s@%s', $this->getOption('general/httpProxy/user'), $this->getOption('general/httpProxy/password'), $this->getOption('general/httpProxy/host'));
        }
        return $options;
    }