diff --git a/src/App/Adapters/ConsoleAppAdapter.php b/src/App/Adapters/ConsoleAppAdapter.php index 8d11d0c8..7444e67d 100644 --- a/src/App/Adapters/ConsoleAppAdapter.php +++ b/src/App/Adapters/ConsoleAppAdapter.php @@ -64,9 +64,8 @@ public function __construct() if ($commandName !== 'core:env') { $this->loadEnvironment(); + $this->loadConfig(); } - - $this->loadConfig(); } /** @@ -82,12 +81,10 @@ public function start(): ?int { try { $this->application = $this->createApplication( - config()->get('app_name'), - config()->get('app_version') + config()->get('app_name', 'UNKNOWN'), + config()->get('app_version', 'UNKNOWN') ); - $this->loadLanguage(); - $this->registerCoreCommands(); $this->registerAppCommands();