diff --git a/src/App.php b/src/App.php index 204c311..87cffa6 100755 --- a/src/App.php +++ b/src/App.php @@ -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)