This commit is contained in:
2020-12-17 14:09:14 +08:00
parent 672a719dbd
commit 36c1d0502a
151 changed files with 1937 additions and 2848 deletions
+3 -3
View File
@@ -27,11 +27,11 @@ class Command extends \Console\Command
/**
* @param Input $dtl
* @return mixed|void
* @return string
* @throws Exception
* @throws ConfigException
*/
public function onHandler(Input $dtl)
public function onHandler(Input $dtl): string
{
$manager = Snowflake::app()->server;
$manager->setDaemon($dtl->get('daemon', 0));
@@ -48,7 +48,7 @@ class Command extends \Console\Command
if ($dtl->get('action') == 'stop') {
return 'shutdown success.';
}
$manager->start();
return $manager->start();
}
}