变更
This commit is contained in:
+1
-16
@@ -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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user