Skip to content

Commit

Permalink
fix: patch up seg fault
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Aug 13, 2024
1 parent c929c0c commit 31a0638
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,11 @@ private function setupDefaultContainer()
return new Http\Headers();
});

Config::set('mode', _env('APP_ENV', Config::get('mode')));
Config::set('app.instance', $this);
Config::set('app.container', $this->container);

$this->config('mode', _env('APP_ENV', Config::get('mode')));
/**@deprecated app.container will be removed in next version */
Config::set('app.container', $this->container);
}

public function __get($name)
Expand Down

0 comments on commit 31a0638

Please sign in to comment.