eee
This commit is contained in:
+1
-3
@@ -109,13 +109,11 @@ class ServerCommand extends Command
|
||||
*/
|
||||
protected function start(InputInterface $input): int
|
||||
{
|
||||
$daemon = (int)$input->getOption('daemon');
|
||||
$manager = Kiri::getDi()->get(AsyncServer::class);
|
||||
$router = Kiri::getDi()->get(Router::class);
|
||||
|
||||
$router->scan_build_route();
|
||||
$manager->addProcess(config('processes', []));
|
||||
$manager->initCoreServers(config('server', []), $daemon);
|
||||
$manager->initCoreServers(config('server', []), (int)$input->getOption('daemon'));
|
||||
$manager->start();
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user