[FramworkBundle] mark any env vars found in the ide setting as used

This commit is contained in:
Nicolas Grekas 2019-04-28 11:46:42 +02:00
parent c3f57d0015
commit e461d36ec4
1 changed files with 2 additions and 0 deletions

View File

@ -212,6 +212,8 @@ class FrameworkExtension extends Extension
'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));
}