Skip to content

Commit

Permalink
fix: patch settings reset on set
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Mar 11, 2023
1 parent acfc59c commit a3b1dc9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,9 @@ private function setupDefaultContainer()
});
}

Config::set([
'mode' => _env('APP_ENV') ?? $this->config('mode'),
'app' => [
'instance' => $this,
'container' => $this->container,
],
]);
Config::set('mode', _env('APP_ENV', $this->config('mode')));
Config::set('app.instance', $this);
Config::set('app.container', $this->container);
}

public function __get($name)
Expand Down

0 comments on commit a3b1dc9

Please sign in to comment.