Skip to content

Commit

Permalink
Bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
chongyi committed Aug 22, 2016
1 parent a0932af commit 31afefb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Foundation/Http/Kernel.php
Expand Up @@ -138,6 +138,14 @@ protected function rebuildApplication()

$this->app->rebuild();
$this->router = $this->app->make(Router::class);

foreach ($this->middlewareGroups as $key => $middleware) {
$this->router->middlewareGroup($key, $middleware);
}

foreach ($this->routeMiddleware as $key => $middleware) {
$this->router->middleware($key, $middleware);
}
}

/**
Expand Down

0 comments on commit 31afefb

Please sign in to comment.