Skip to content

Commit

Permalink
[HttpKernel] fix $dotenvVars in data collector
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Oct 8, 2019
1 parent a4f90e8 commit ca3fb25
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -80,9 +80,9 @@ public function collect(Request $request, Response $response, \Exception $except
}

$dotenvVars = [];
foreach (explode(',', getenv('SYMFONY_DOTENV_VARS')) as $name) {
if ('' !== $name && false !== $value = getenv($name)) {
$dotenvVars[$name] = $value;
foreach (explode(',', $_SERVER['SYMFONY_DOTENV_VARS'] ?? $_ENV['SYMFONY_DOTENV_VARS'] ?? '') as $name) {
if ('' !== $name && isset($_ENV[$name])) {
$dotenvVars[$name] = $_ENV[$name];
}
}

Expand Down

0 comments on commit ca3fb25

Please sign in to comment.