示例#1
0
文件: Core.php 项目: noptic/co3
 public function __construct()
 {
     $this->onPluginSet = Event::inject(array('owner' => $this));
 }
示例#2
0
文件: App.php 项目: noptic/co3
 public function __construct()
 {
     foreach (array('onBoot', 'onRun', 'onFail', 'onShutdown') as $name) {
         $this->{$name} = Event::inject(array('owner' => $this));
     }
 }