/** * 修改原构造方法 * * @param array $config */ public function __construct($config) { parent::__construct($config); $siteList = Arr::get($config, 'siteList'); foreach ($siteList as $domain => $path) { $this->addRoot($domain, $path); } }
/** * {@inheritdoc} */ public function __construct($config) { parent::__construct($config); $this->onMessage = [$this, 'onMessage']; if (!$this->statDir) { $this->statDir = StatServer::$statDir; } if (!$this->logDir) { $this->logDir = StatServer::$logDir; } }
/** * {@inheritdoc} */ public function __construct($config) { parent::__construct($config); $this->onMessage = [$this, 'onMessage']; }