Skip to content
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

Merged
merged 1 commit into from
Aug 23, 2015

Conversation

nicolas-grekas
Copy link
Member

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)

@javiereguiluz
Copy link
Member

👍

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

@nicolas-grekas
Copy link
Member Author

@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);
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@fabpot
Copy link
Member

fabpot commented Aug 23, 2015

Thank you @nicolas-grekas.

@fabpot fabpot merged commit adb5327 into symfony:2.3 Aug 23, 2015
fabpot added a commit that referenced this pull request Aug 23, 2015
…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
@nicolas-grekas nicolas-grekas deleted the fix-file-link-prio branch August 24, 2015 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants