This commit is contained in:
2021-09-07 11:44:12 +08:00
parent 0cdb8c5b20
commit 86880f8b1f
5 changed files with 11 additions and 17 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class OnWorkerStart implements EventDispatcherInterface
$this->interpretDirectory($isWorker);
if ($isWorker) {
ServerManager::setEnv('environmental', Kiri::WORKER);
Kiri::getFactory()->getRouter()->_loader();
Kiri::getDi()->get(Router::class)->_loader();
$this->setProcessName(sprintf('Worker[%d].%d', $event->server->worker_pid, $event->workerId));
} else {