修改服务

This commit is contained in:
yanwenwu 2020-02-01 15:42:13 +08:00
parent b18390739f
commit d0687df4de

View File

@ -31,11 +31,22 @@ class CatchAdminService extends Service
* @return void * @return void
*/ */
public function boot() public function boot()
{
}
/**
* register
*
* @author JaguarJack
* @email njphper@gmail.com
* @time 2020/1/30
* @return void
*/
public function register()
{ {
$this->registerCommands(); $this->registerCommands();
$this->registerValidates(); $this->registerValidates();
$this->registerMiddleWares(); $this->registerMiddleWares();
$this->registerEvents();
$this->registerListeners(); $this->registerListeners();
$this->registerQuery(); $this->registerQuery();
} }
@ -90,19 +101,6 @@ class CatchAdminService extends Service
], 'route'); ], 'route');
} }
/**
*
* @time 2019年12月12日
* @return void
*/
protected function registerEvents(): void
{
$this->app->event->bind([
'loginLog' => LoginLogEvent::class,
'operateLog' => OperateLogEvent::class,
]);
}
/** /**
* 注册监听者 * 注册监听者
* *