-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FrameworkBundle] Fix precedence of xdebug.file_link_format #15549
Conversation
👍 Should we also simplify the constructor of the Twig's Code extension? See https://github.com/symfony/symfony/blob/2.3/src/Symfony/Bridge/Twig/Extension/CodeExtension.php#L34 |
@javiereguiluz the bridge could be used without the FrameworkBundle |
|
||
$container->setParameter('templating.helper.code.file_link_format', isset($links[$ide]) ? $links[$ide] : $ide); | ||
$link = ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format') ?: $ide; | ||
$container->setParameter('templating.helper.code.file_link_format', isset($links[$link]) ? $links[$link] : $link); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checking $links[$link]
for values coming from XDebug config does not make sense IMO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
339c3b6
to
adb5327
Compare
Thank you @nicolas-grekas. |
…t (nicolas-grekas) This PR was merged into the 2.3 branch. Discussion ---------- [FrameworkBundle] Fix precedence of xdebug.file_link_format | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | symfony/symfony-docs#5625 See symfony/demo#148 (comment) Commits ------- adb5327 [FrameworkBundle] Fix precedence of xdebug.file_link_format
See symfony/demo#148 (comment)