Skip to content

Commit

Permalink
Merge pull request #192 from armanist/master
Browse files Browse the repository at this point in the history
Removing language load in console app and making sure to not load con…
  • Loading branch information
armanist authored Feb 15, 2025
2 parents 80cdf2f + 78a4a3f commit 2f1d0c5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/App/Adapters/ConsoleAppAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ public function __construct()

if ($commandName !== 'core:env') {
$this->loadEnvironment();
$this->loadConfig();
}

$this->loadConfig();
}

/**
Expand All @@ -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();

Expand Down

0 comments on commit 2f1d0c5

Please sign in to comment.