From 1e2e77d8fa5be74a9e30db39d2fea4c8ed5f41a1 Mon Sep 17 00:00:00 2001 From: pandawabot Date: Tue, 6 Sep 2022 12:05:14 +0000 Subject: [PATCH] fix(foundation): fix unloaded middlewares --- Http/Kernel.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Http/Kernel.php b/Http/Kernel.php index a9758d9..3d06029 100644 --- a/Http/Kernel.php +++ b/Http/Kernel.php @@ -30,12 +30,12 @@ class Kernel extends HttpKernel public function __construct(ApplicationInterface $app, Router $router) { - parent::__construct($app, $router); - $this->bootstrappers = $app->getFoundationConfig('http.kernel.bootstrappers', $this->bootstrappers); $this->middleware = $app->getFoundationConfig('http.middleware.all', $this->middleware); $this->middlewareGroups = $app->getFoundationConfig('http.middleware.groups', $this->middlewareGroups); - $this->routeMiddleware = $app->getFoundationConfig('http.middleware.route', $this->routeMiddleware); + $this->routeMiddleware = $app->getFoundationConfig('http.middleware.routes', $this->routeMiddleware); $this->middlewarePriority = $app->getFoundationConfig('http.middleware.priorities', $this->middlewarePriority); + + parent::__construct($app, $router); } }