This commit is contained in:
2023-08-17 17:04:55 +08:00
parent b26d5074fc
commit 5150b9027e
3 changed files with 56 additions and 45 deletions
+1 -3
View File
@@ -118,9 +118,7 @@ class AsyncServer implements ServerInterface
return;
}
$container = Kiri::getDi();
$task = $container->get(Task::class);
$container->bind(TaskInterface::class, $task);
$task->initTaskWorker($this->server);
$container->get(Task::class)->initTaskWorker($this->server);
}