This commit is contained in:
2023-04-16 15:24:54 +08:00
parent 634b4f7aa3
commit 8c0f98da2a
+2 -2
View File
@@ -50,11 +50,11 @@ class ProcessManager extends Component
* @param OnServerBeforeStart $beforeStart
* @return void
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
* @throws NotFoundExceptionInterface|Exception
*/
public function OnServerBeforeStart(OnServerBeforeStart $beforeStart): void
{
$server = $this->container->get(ServerInterface::class);
$server = Kiri::service()->get('server');
foreach ($this->_process as $custom) {
if (Kiri\Di\Context::inCoroutine()) {
Coroutine::create(function () use ($custom) {