This commit is contained in:
2023-04-16 17:15:05 +08:00
parent b782fae562
commit a475e3a396
+3 -2
View File
@@ -23,7 +23,8 @@ use ReflectionException;
use Symfony\Component\Console\{Application as ConsoleApplication, use Symfony\Component\Console\{Application as ConsoleApplication,
Input\ArgvInput, Input\ArgvInput,
Output\ConsoleOutput, Output\ConsoleOutput,
Output\OutputInterface}; Output\OutputInterface
};
/** /**
@@ -120,7 +121,7 @@ class Main extends BaseMain
$command = $console->find($input->getFirstArgument()); $command = $console->find($input->getFirstArgument());
$scanner = $this->container->get(Scanner::class); $scanner = $this->container->get(Scanner::class);
$scanner->read(APP_PATH); $scanner->read(APP_PATH . 'app/');
fire(new OnBeforeCommandExecute()); fire(new OnBeforeCommandExecute());