<?php
namespace App\Soap; class SoapClientOptions extends \Engine\Soap\SoapClientOptions { public $trace = 1; public function __construct() { if (\App\Config\ProxySettings::getInstance()->get('host')) { $this->proxy_host = \App\Config\ProxySettings::getInstance()->get('host'); $this->proxy_port = \App\Config\ProxySettings::getInstance()->get('port'); $this->proxy_login = \App\Config\ProxySettings::getInstance()->get('user'); $this->proxy_password = \App\Config\ProxySettings::getInstance()->get('pass'); } parent::__construct(); } }