src/Graviton/CoreBundle/Compiler/HttpClientOptionsCompilerPass.php
private function setProxy($proxy, $onlyProtocol = null)
    {
        $proxy = trim($proxy);
        if (null == $onlyProtocol) {
            $this->proxySettings['http'] = $proxy;
            $this->proxySettings['https'] = $proxy;
        } else {
            $this->proxySettings[$onlyProtocol] = $proxy;
        }
    }
private function setProxy($proxy, $onlyProtocol = null)
    {
        $proxy = trim($proxy);
        if (null == $onlyProtocol) {
            $this->proxySettings['http'] = $proxy;
            $this->proxySettings['https'] = $proxy;
        } else {
            $this->proxySettings[$onlyProtocol] = $proxy;
        }
    }
private function setProxy ( $ proxy , $ onlyProtocol = null ) { $ proxy = trim ( $ proxy ) ; if ( null == $ onlyProtocol ) { $ this -> proxySettings [ 'http' ] = $ proxy ; $ this -> proxySettings [ 'https' ] = $ proxy ; } else { $ this -> proxySettings [ $ onlyProtocol ] = $ proxy ; } }
set the proxy

@param string       $proxy        the proxy
@param null|boolean $onlyProtocol only set certain protocol

@return void
set the proxy