예제 #1
0
파일: DB.php 프로젝트: LL233/crawler
 public function __construct()
 {
     $this->settings = Component::Config()->get("db");
     parent::__construct();
 }
예제 #2
0
파일: Hook.php 프로젝트: LL233/crawler
 /**
  * 构造函数
  * 实例化应用类
  */
 public function __construct()
 {
     $this->hookPrefix = Component::Config()->get("hookPrefix");
     $app = Component::Config()->get("appName");
     $this->app = new $app();
 }