merge framework and kernel

This commit is contained in:
sunxyw
2023-03-07 23:07:52 +08:00
parent 8f43012a5c
commit 772288b517
19 changed files with 153 additions and 176 deletions

View File

@@ -52,8 +52,8 @@ final class ConsoleApplication extends Application
$input = $event->getInput();
// 初始化内核
/** @var Kernel $kernel */
$kernel = Kernel::getInstance();
/** @var Framework $kernel */
$kernel = Framework::getInstance();
$kernel->setConfigDir($input->getOption('config-dir'));
$kernel->setEnvironment($input->getOption('env'));
$kernel->setDebugMode($input->getOption('debug'));