修改服务
This commit is contained in:
parent
b18390739f
commit
d0687df4de
@ -31,11 +31,22 @@ class CatchAdminService extends Service
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* register
|
||||
*
|
||||
* @author JaguarJack
|
||||
* @email njphper@gmail.com
|
||||
* @time 2020/1/30
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->registerCommands();
|
||||
$this->registerValidates();
|
||||
$this->registerMiddleWares();
|
||||
$this->registerEvents();
|
||||
$this->registerListeners();
|
||||
$this->registerQuery();
|
||||
}
|
||||
@ -90,19 +101,6 @@ class CatchAdminService extends Service
|
||||
], 'route');
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @time 2019年12月12日
|
||||
* @return void
|
||||
*/
|
||||
protected function registerEvents(): void
|
||||
{
|
||||
$this->app->event->bind([
|
||||
'loginLog' => LoginLogEvent::class,
|
||||
'operateLog' => OperateLogEvent::class,
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册监听者
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user