Example #1
0
 public function __construct()
 {
     //添加开始时间钩子
     \Kerisy\Core\Hook::add("server_start", function () {
         $startTime = \Kerisy\Tool\RunTime::setStartTime();
         return $startTime;
     });
     parent::__construct();
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->init();
     $this->bootstrap();
 }