From bcaeb758949dc1a46039de6a5f954f42b4973ac9 Mon Sep 17 00:00:00 2001 From: funadmin <994927909@qq.com> Date: Mon, 5 Sep 2022 08:59:11 +0800 Subject: [PATCH] Update Service.php --- src/addons/Service.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/addons/Service.php b/src/addons/Service.php index e5f9322..4d17cb2 100644 --- a/src/addons/Service.php +++ b/src/addons/Service.php @@ -52,9 +52,9 @@ public function register() public function boot() { //注册HttpRun事件监听,触发后注册全局中间件到开始位置 -// $this->app->event->listen('HttpRun', function () { -// $this->app->middleware->add(MultiAddons::class); -// }); + $this->app->event->listen('HttpRun', function () { + $this->app->middleware->add(MultiAddons::class); + }); $this->registerRoutes(function (Route $route) { // 路由脚本 $execute = '\\fun\\addons\\Route::execute';