This commit is contained in:
2021-08-19 15:47:12 +08:00
parent 75714dab64
commit 6fa51c2fe3
2 changed files with 2 additions and 2 deletions
-1
View File
@@ -57,7 +57,6 @@ class ServerManager
* @param int $port * @param int $port
* @param int $mode * @param int $mode
* @param array $settings * @param array $settings
* @throws NotFindClassException
* @throws ReflectionException * @throws ReflectionException
* @throws ConfigException * @throws ConfigException
* @throws Exception * @throws Exception
+2 -1
View File
@@ -168,6 +168,8 @@ class Application extends BaseApplication
public function execute(Input $argv): void public function execute(Input $argv): void
{ {
try { try {
$this->register(Runtime::class);
$manager = Kiri::app()->get('console'); $manager = Kiri::app()->get('console');
$class = $manager->setParameters($argv)->search(); $class = $manager->setParameters($argv)->search();
@@ -189,7 +191,6 @@ class Application extends BaseApplication
*/ */
private function enableFileChange($class): void private function enableFileChange($class): void
{ {
$this->register(Runtime::class);
if (env('enableFileChange', 'off') == 'off' || !($class instanceof Server)) { if (env('enableFileChange', 'off') == 'off' || !($class instanceof Server)) {
scan_directory(directory('app'), 'App'); scan_directory(directory('app'), 'App');
} }