private function fetchNewsOptions($hostname)
    {
        $driver = $this->app['db']->getDatabasePlatform()->getName();

        $options = [
            'query' => [
                'v'    => Bolt\Version::VERSION,
                'p'    => PHP_VERSION,
                'db'   => $driver,
                'name' => $hostname,
            ],
            'connect_timeout' => 5,
            'timeout'         => 10,
        ];

        if ($this->getOption('general/httpProxy')) {
            if ($this->getOption('general/httpProxy/user')) {
                $options['proxy'] = sprintf(
                    '%s:%s@%s',
                    $this->getOption('general/httpProxy/user'),
                    $this->getOption('general/httpProxy/password'),
                    $this->getOption('general/httpProxy/host')
                );
            } else {
                $options['proxy'] = $this->getOption('general/httpProxy/host');
            }
        }

        return $options;
    }
private function fetchNewsOptions($hostname)
    {
        $driver = $this->app['db']->getDatabasePlatform()->getName();

        $options = [
            'query' => [
                'v'    => Bolt\Version::VERSION,
                'p'    => PHP_VERSION,
                'db'   => $driver,
                'name' => $hostname,
            ],
            'connect_timeout' => 5,
            'timeout'         => 10,
        ];

        if ($this->getOption('general/httpProxy')) {
            if ($this->getOption('general/httpProxy/user')) {
                $options['proxy'] = sprintf(
                    '%s:%s@%s',
                    $this->getOption('general/httpProxy/user'),
                    $this->getOption('general/httpProxy/password'),
                    $this->getOption('general/httpProxy/host')
                );
            } else {
                $options['proxy'] = $this->getOption('general/httpProxy/host');
            }
        }

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

@param string $hostname

@return array
Get the guzzle options .