File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 7
7
// Load cached env vars if the .env.local.php file exists
8
8
// Run "composer dump-env prod" to create it (requires symfony/flex >=1.2)
9
9
if (is_array ($ env = @include dirname (__DIR__ ).'/.env.local.php ' )) {
10
- $ _ENV += $ env ;
10
+ foreach ( $ env as $ k => $ v ) $ _ENV [ $ k ] = isset ( $ _SERVER [ $ k ]) && 0 !== strpos ( $ k , ' HTTP_ ' ) ? $ _SERVER [ $ k ] : $ v ;
11
11
} elseif (!class_exists (Dotenv::class)) {
12
12
throw new RuntimeException ('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application. ' );
13
13
} else {
Original file line number Diff line number Diff line change 7
7
// Load cached env vars if the .env.local.php file exists
8
8
// Run "composer dump-env prod" to create it (requires symfony/flex >=1.2)
9
9
if (is_array ($ env = @include dirname (__DIR__ ).'/.env.local.php ' )) {
10
- $ _ENV += $ env ;
10
+ foreach ( $ env as $ k => $ v ) $ _ENV [ $ k ] = isset ( $ _SERVER [ $ k ]) && 0 !== strpos ( $ k , ' HTTP_ ' ) ? $ _SERVER [ $ k ] : $ v ;
11
11
} elseif (!class_exists (Dotenv::class)) {
12
12
throw new RuntimeException ('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application. ' );
13
13
} else {
You can’t perform that action at this time.
0 commit comments