mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-02 14:25:38 +08:00
merge framework and kernel
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user