This commit is contained in:
2023-03-30 23:02:12 +08:00
parent 65cbde3706
commit 5c861c312b
+1 -16
View File
@@ -99,28 +99,13 @@ class ServerCommand extends Command
* @return int * @return int
* @throws ConfigException * @throws ConfigException
* @throws ContainerExceptionInterface * @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface|ReflectionException * @throws NotFoundExceptionInterface
*/ */
protected function start(InputInterface $input): int protected function start(InputInterface $input): int
{ {
$this->scan_file();
$this->server->setDaemon((int)!is_null($input->getOption('daemon'))); $this->server->setDaemon((int)!is_null($input->getOption('daemon')));
$this->server->start(); $this->server->start();
return 1; return 1;
} }
/**
* @return void
* @throws ConfigException
* @throws ReflectionException
*/
protected function scan_file(): void
{
// $config = Config::get('reload.scanner', []);
// if (is_array($config)) foreach ($config as $key => $value) {
// scan_directory($value, $key);
// }
}
} }