Set Proxy

@return array
496851
public static function setProxy()
    {
        return [
            CURLOPT_PROXY => Config::get('larasap.proxy.hostname' , '127.0.0.1'),
            CURLOPT_PROXYPORT => Config::get('larasap.proxy.port' , '9050'),
            CURLOPT_PROXYTYPE => Config::get('larasap.proxy.type' , CURLPROXY_SOCKS5_HOSTNAME),
            CURLOPT_PROXYUSERPWD => Config::get('larasap.proxy.username').':'.Config::get('larasap.proxy.password'),
        ];
        
    }
750632
public function setProxy(\Victoire\Bundle\CoreBundle\Entity\EntityProxy $proxy = null)
    {
        $this->proxy = $proxy;

        return $this;
    }
1172230
protected function proxy() {
        if (!$this->context) {
            $this->context = new UsageContext($this->version, $this->solution['simSid']);
        }

        return $this->context;
    }
961578
public function getProxy()
    {
        $aProxy['ip'] = $this->proxyIP;
        $aProxy['port'] = $this->proxyPORT;
        $aProxy['username'] = $this->proxyUSER;
        $aProxy['password'] = $this->proxyPASS;

        return $aProxy;
    }
1232527
protected function proxy() {
        if (!$this->context) {
            $this->context = new RoleContext(
                $this->version,
                $this->solution['serviceSid'],
                $this->solution['sid']
            );
        }

        return $this->context;
    }
1183751
public function getProxyType()
    {
        $proxy_options = $this->getOption(EnumRequestOption::PROXY_OPTIONS, []);
        return isset($proxy_options[EnumProxyOption::PROXY_TYPE]) ? $proxy_options[EnumProxyOption::PROXY_TYPE] : 'http';
    }
1097058
protected function proxy() {
        if (!$this->context) {
            $this->context = new InstalledAddOnContext($this->version, $this->solution['sid']);
        }

        return $this->context;
    }
957429
protected function proxy() {
        if (!$this->context) {
            $this->context = new RatePlanContext($this->version, $this->solution['sid']);
        }

        return $this->context;
    }
1280909
public function getProxy()
    {
        if (!$this->proxy instanceof YumlProxy) {
            $this->setProxy($this->getServiceLocator()->get('dlcdiagramm_yuml_proxy'));
        }
        return $this->proxy;
    }
340199
def configure_proxy(self, curl_object):
        """"""
        curl_object.setopt(curl_object.PROXY, self._proxy_hostname)
        curl_object.setopt(curl_object.PROXYPORT, self._proxy_port)
        curl_object.setopt(curl_object.PROXYTYPE, curl_object.PROXYTYPE_SOCKS5)
        if self._proxy_user and self._proxy_passwd:
            curl_object.setopt(curl_object.PROXYUSERPWD, '%s:%s' % (self._proxy_user, self._proxy_port))
718277
public function setProxy(string $proxy): RequestContext
    {
        $this->assertValidUrl($proxy);

        $this->proxy = $proxy;

        return $this;
    }
1316842
protected function proxy() {
        if (!$this->context) {
            $this->context = new EntityContext(
                $this->version,
                $this->solution['serviceSid'],
                $this->solution['identity']
            );
        }

        return $this->context;
    }
693863
protected function proxy() {
        if (!$this->context) {
            $this->context = new FaxMediaContext(
                $this->version,
                $this->solution['faxSid'],
                $this->solution['sid']
            );
        }

        return $this->context;
    }
2207
protected function proxy() {
        if (!$this->context) {
            $this->context = new SyncListContext(
                $this->version,
                $this->solution['serviceSid'],
                $this->solution['sid']
            );
        }

        return $this->context;
    }
93531
public function translate(Proxy $proxy)
    {
        $this->proxy   = $proxy;
        $laravelPhpbu  = $this->proxy->get('phpbu');
        $configuration = new Configuration();
        $configuration->setFilename($this->proxy->get('phpbu.config'));

        $this->addBackups($configuration, $laravelPhpbu);

        return $configuration;
    }
363843
protected function createProxy()
    {
        $config = $this->config;

        $interface = Arr::pull($config, 'interface');

        $client = $this->clientFactory->client(Arr::pull($config, 'client'));

        $invoker = new RemoteInvoker($this->context, $client, $interface, $config);

        $invoker = $this->withMiddleware($invoker, $interface, $config);

        return $this->proxyFactory->proxy($invoker);
    }
1154420
protected function proxy() {
        if (!$this->context) {
            $this->context = new SyncStreamContext(
                $this->version,
                $this->solution['serviceSid'],
                $this->solution['sid']
            );
        }

        return $this->context;
    }