Skip to content

Commit

Permalink
[FramworkBundle] mark any env vars found in the ide setting as used
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Apr 28, 2019
1 parent c3f57d0 commit e461d36
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -212,6 +212,8 @@ public function load(array $configs, ContainerBuilder $container)
'phpstorm' => 'phpstorm://open?file=%%f&line=%%l',
];
$ide = $config['ide'];
// mark any env vars found in the ide setting as used
$container->resolveEnvPlaceholders($ide);

$container->setParameter('templating.helper.code.file_link_format', str_replace('%', '%%', ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format')) ?: (isset($links[$ide]) ? $links[$ide] : $ide));
}
Expand Down

0 comments on commit e461d36

Please sign in to comment.