Exemplo n.º 1
0
Arquivo: DB.php Projeto: LL233/crawler
 public function __construct()
 {
     $this->settings = Component::Config()->get("db");
     parent::__construct();
 }
Exemplo n.º 2
0
 /**
  * 构造函数
  * 实例化应用类
  */
 public function __construct()
 {
     $this->hookPrefix = Component::Config()->get("hookPrefix");
     $app = Component::Config()->get("appName");
     $this->app = new $app();
 }