diff --git a/catch/CatchAdminService.php b/catch/CatchAdminService.php index 982ba5f..cf4db93 100644 --- a/catch/CatchAdminService.php +++ b/catch/CatchAdminService.php @@ -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, - ]); - } - /** * 注册监听者 *