diff --git a/extend/catcher/CatchAdminService.php b/extend/catcher/CatchAdminService.php index 9d86a0a..23f2700 100644 --- a/extend/catcher/CatchAdminService.php +++ b/extend/catcher/CatchAdminService.php @@ -1,13 +1,6 @@ app->event->listenEvents([ - 'loginLog' => [ - LoginLogListener::class, - ], - 'operateLog' => [ - OperateLogListener::class, - ], - 'RouteLoaded' => [ - LoadModuleRoutes::class - ], - ]); + $this->app->event->listenEvents(config('catch.events')); } - protected function registerQuery() + /** + * register query + * + * @time 2020年02月20日 + * @return void + */ + protected function registerQuery(): void { $connections = $this->app->config->get('database.connections'); @@ -134,7 +121,13 @@ class CatchAdminService extends Service ], 'database'); } - protected function registerExceptionHandle() + /** + * register exception + * + * @time 2020年02月20日 + * @return void + */ + protected function registerExceptionHandle(): void { $this->app->bind(Handle::class, CatchExceptionHandle::class); }