This commit is contained in:
2021-09-26 16:03:55 +08:00
parent 5ec3916ff1
commit 788cb631e0
+3
View File
@@ -39,6 +39,9 @@ class Handler
$dispatcher = Kiri::getDi()->get(EventProvider::class);
$dispatcher->on(OnAfterWorkerStart::class, function () {
if ($this->route instanceof Closure) {
return;
}
$this->_middlewares = MiddlewareManager::get($this->route);
});
}