改名
This commit is contained in:
@@ -39,6 +39,9 @@ class Handler
|
|||||||
|
|
||||||
$dispatcher = Kiri::getDi()->get(EventProvider::class);
|
$dispatcher = Kiri::getDi()->get(EventProvider::class);
|
||||||
$dispatcher->on(OnAfterWorkerStart::class, function () {
|
$dispatcher->on(OnAfterWorkerStart::class, function () {
|
||||||
|
if ($this->route instanceof Closure) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$this->_middlewares = MiddlewareManager::get($this->route);
|
$this->_middlewares = MiddlewareManager::get($this->route);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user