改名
This commit is contained in:
@@ -210,14 +210,14 @@ class Server extends Application
|
||||
return;
|
||||
}
|
||||
foreach ($processes as $name => $process) {
|
||||
$this->debug(sprintf('Process %s', $process));
|
||||
if (!is_string($process)) {
|
||||
continue;
|
||||
}
|
||||
$is_enable_coroutine = true;
|
||||
if (is_array($process)) {
|
||||
[$process, $is_enable_coroutine] = $process;
|
||||
}
|
||||
$this->debug(sprintf('Process %s', $process));
|
||||
if (!is_string($process)) {
|
||||
continue;
|
||||
}
|
||||
$system = new $process(Snowflake::app(), $name, $is_enable_coroutine);
|
||||
$this->baseServer->addProcess($system);
|
||||
$application->set($process, $system);
|
||||
|
||||
Reference in New Issue
Block a user