-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Comment framework.ide setting #148
Conversation
If what you say is true ... then Symfony docs are wrong in this explanation:
By the way, this demo application is mostly targeted at newcomers. Most of them don't have Xdebug installed and/or enabled, so I think it makes sense to enable this option by default. Let's see what others think about this. |
You're right that there is something suspicious. Looking quickly (too quickly?) at the code, the doc looks wrong (or the code). |
Taking a look at this code: public function __construct($fileLinkFormat, $rootDir, $charset)
{
$this->fileLinkFormat = $fileLinkFormat
?: ini_get('xdebug.file_link_format')
?: get_cfg_var('xdebug.file_link_format');
// ...
} It seems that the explanation is wrong ... although the described behavior seems better than the current one. |
Yes, it's true. I think we shoud change this code and keep explanation in docs as is, right? |
@bocharsky-bw I agree that it makes sense that your local settings override anything else. The code should be changed. I don't know if that could be considered a BC break. |
I'm closing this issue as "won't fix" because Nicolas did something even better: he fixed an issue in Symfony that prevented you local settings from overriding the application settings. See symfony/symfony#15549. |
…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
…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
This setting takes priority over any locally configured one, and thus prevents using source links with the demo app.