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;
}