예제 #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));
     }
 }
예제 #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();
 }
예제 #3
0
 public function __construct($settings = null)
 {
     parent::__construct($settings);
     $this->mock = Mock::getNull();
 }
예제 #4
0
파일: App.php 프로젝트: php-yaoi/php-yaoi
 public function __construct($settings = null)
 {
     parent::__construct($settings);
 }