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
[ErrorHandler][HttpKernel] Read SYMFONY_IDE to render exception in case of fatal error #45745
Conversation
04dc168
to
cc4a16d
Compare
Hey! I think @PhilETaylor has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
src/Symfony/Component/ErrorHandler/ErrorRenderer/HtmlErrorRenderer.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/ErrorHandler/ErrorRenderer/HtmlErrorRenderer.php
Outdated
Show resolved
Hide resolved
cc4a16d
to
b0211f5
Compare
src/Symfony/Component/ErrorHandler/ErrorRenderer/HtmlErrorRenderer.php
Outdated
Show resolved
Hide resolved
97a24e1
to
c942cfe
Compare
src/Symfony/Component/ErrorHandler/ErrorRenderer/HtmlErrorRenderer.php
Outdated
Show resolved
Hide resolved
c942cfe
to
03ad4af
Compare
Sorry, nothing to add here. My changes were in HtmlRenderer to render a custom template 2 years ago 6e1d16b and not related to framework.ide :) :) Although I use the framework.ide links daily so happy to test this PR. |
In #44575, the env var
SYMFONY_IDE
is read whenframework.ide
is not set. This works to format links in most runtime exceptions. But fatal errors that occurs before application boot are not rendered using this config (ex: syntax error in service class).Since the env var is globally available, it can be read even if it's not been injected.
The list of IDE formats have been duplicated from
FileLinkFormatter
.The update of
Symfony\Component\HttpKernel\Debug\FileLinkFormatter
is not necessary for my use-case, but for exhaustivity.