Skip to content

Commit

Permalink
Update Service.php
Browse files Browse the repository at this point in the history
  • Loading branch information
funadmin authored Sep 5, 2022
1 parent 5b341bb commit bcaeb75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/addons/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit bcaeb75

Please sign in to comment.