修改服务
This commit is contained in:
parent
b18390739f
commit
d0687df4de
@ -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,
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 注册监听者
|
* 注册监听者
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user