示例#1
0
 /**
  * 初始化时
  * @return void
  */
 public function init()
 {
     ActiveRecord::setConnectionResolver($this->app['db']);
     ActiveRecord::setEventDispatcher($this->app['events']);
 }