From 1f6dd0fd4586978c8c459d15fc408e6db04f81d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sun, 26 Sep 2021 16:05:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http-handler/Handler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http-handler/Handler.php b/http-handler/Handler.php index 9730dcb4..78bd091e 100644 --- a/http-handler/Handler.php +++ b/http-handler/Handler.php @@ -39,10 +39,10 @@ class Handler $dispatcher = Kiri::getDi()->get(EventProvider::class); $dispatcher->on(OnAfterWorkerStart::class, function () { - if ($this->route instanceof Closure) { + if ($this->callback instanceof Closure) { return; } - $this->_middlewares = MiddlewareManager::get($this->route); + $this->_middlewares = MiddlewareManager::get($this->callback); }); }