提交
This commit is contained in:
parent
9ea7e9ad9e
commit
d685a6fdc2
|
@ -35,7 +35,7 @@ class MultiEnvListener implements ListenerInterface
|
||||||
{
|
{
|
||||||
$env = env('APP_ENV');
|
$env = env('APP_ENV');
|
||||||
$env_path = BASE_PATH.'/.env.'.$env;
|
$env_path = BASE_PATH.'/.env.'.$env;
|
||||||
if ($event instanceof BootApplication && $env !== null) {
|
if ($env !== null && $event instanceof BootApplication) {
|
||||||
if (file_exists($env_path) && ApplicationContext::hasContainer()) {
|
if (file_exists($env_path) && ApplicationContext::hasContainer()) {
|
||||||
(ApplicationContext::getContainer())->get(Config::class);
|
(ApplicationContext::getContainer())->get(Config::class);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user