This commit is contained in:
2021-09-26 16:05:34 +08:00
parent 788cb631e0
commit 1f6dd0fd45
+2 -2
View File
@@ -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);
});
}