/** * @param string|Settings $settings */ public function __construct($settings = null) { parent::__construct($settings); if ($this->settings->logQueries) { $this->log(Log::getInstance($this->settings->logQueries)); } }
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(); }
public function __construct($settings = null) { parent::__construct($settings); $this->mock = Mock::getNull(); }
public function __construct($settings = null) { parent::__construct($settings); }