This commit is contained in:
2021-08-17 18:19:52 +08:00
parent 6d92ca5b56
commit aab596d14d
+1 -3
View File
@@ -153,9 +153,7 @@ class Application extends BaseApplication
$manager = Kiri::app()->get('console');
$manager->register(Runtime::class);
$class = $manager->setParameters($argv)->search();
// if (!($class instanceof Command)) {
scan_directory(directory('app'), 'App');
// }
$data = $this->getBuilder($manager->exec($class));
} catch (\Throwable $exception) {
$data = $this->getBuilder(logger()->exception($exception));