Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[ErrorHandler][HttpKernel] Read SYMFONY_IDE to render exception in case of fatal error#45745
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedMar 16, 2022
Hey! I think@PhilETaylor has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/ErrorHandler/ErrorRenderer/HtmlErrorRenderer.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/ErrorHandler/ErrorRenderer/HtmlErrorRenderer.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/ErrorHandler/ErrorRenderer/HtmlErrorRenderer.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
97a24e1 toc942cfeComparesrc/Symfony/Component/ErrorHandler/ErrorRenderer/HtmlErrorRenderer.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
PhilETaylor commentedMar 17, 2022
Sorry, nothing to add here. My changes were in HtmlRenderer to render a custom template 2 years ago6e1d16b and not related to framework.ide :) :) Although I use the framework.ide links daily so happy to test this PR. |
Uh oh!
There was an error while loading.Please reload this page.
In#44575, the env var
SYMFONY_IDEis read whenframework.ideis 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\FileLinkFormatteris not necessary for my use-case, but for exhaustivity.