From d0687df4de0667f08a379d0b31d2627e9e369116 Mon Sep 17 00:00:00 2001 From: yanwenwu Date: Sat, 1 Feb 2020 15:42:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/CatchAdminService.php | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) 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, - ]); - } - /** * 注册监听者 *