Example #1
0
 /**
  * @param string|Settings $settings
  */
 public function __construct($settings = null)
 {
     parent::__construct($settings);
     if ($this->settings->logQueries) {
         $this->log(Log::getInstance($this->settings->logQueries));
     }
 }
Example #2
0
 public function __construct($settings = null)
 {
     parent::__construct($settings);
     $this->reset();
     if ($this->settings) {
         if ($this->settings->proxy) {
             $this->setProxy($this->settings->proxy);
         }
         if ($this->settings->defaultHeaders) {
             $this->defaultHeaders = array_merge($this->defaultHeaders, $this->settings->defaultHeaders);
         }
         if ($this->settings->log) {
             $log = Log::getInstance($this->settings->log);
             $this->logUrl($log);
             $this->logContext($log);
             $this->logResponseHeaders($log);
             $this->logResponseBody($log);
             $this->logError($log);
         }
     }
     $this->mock = Mock::getNull();
 }
Example #3
0
 public function __construct($settings = null)
 {
     parent::__construct($settings);
     $this->mock = Mock::getNull();
 }
Example #4
0
 public function __construct($settings = null)
 {
     parent::__construct($settings);
 }