This commit is contained in:
2020-10-09 16:56:00 +08:00
parent 5eaf38b952
commit f43b3ddbd7
2 changed files with 8 additions and 3 deletions
+5 -1
View File
@@ -214,7 +214,11 @@ class Server extends Application
if (!is_string($process)) {
continue;
}
$system = new $process(Snowflake::app(), $name);
$is_enable_coroutine = true;
if (is_array($process)) {
[$process, $is_enable_coroutine] = $process;
}
$system = new $process(Snowflake::app(), $name, $is_enable_coroutine);
$this->baseServer->addProcess($system);
$application->set($process, $system);
}