public function __construct() { $this->settings = Component::Config()->get("db"); parent::__construct(); }
/** * 构造函数 * 实例化应用类 */ public function __construct() { $this->hookPrefix = Component::Config()->get("hookPrefix"); $app = Component::Config()->get("appName"); $this->app = new $app(); }