Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Merged
GromNaN merged 1 commit intosymfony:6.1fromGromNaN:symfony-ide-fatal
Mar 17, 2022

Conversation

@GromNaN
Copy link
Member

@GromNaNGromNaN commentedMar 15, 2022
edited
Loading

QA
Branch?6.1
Bug fix?no
New feature?yes
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

In#44575, the env varSYMFONY_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 fromFileLinkFormatter.

The update ofSymfony\Component\HttpKernel\Debug\FileLinkFormatter is not necessary for my use-case, but for exhaustivity.

@carsonbotcarsonbot added this to the6.1 milestoneMar 15, 2022
@carsonbotcarsonbot changed the title[ErrorHandler] Read SYMFONY_IDE to render exception in case of fatal error[ErrorHandler][HttpKernel] Read SYMFONY_IDE to render exception in case of fatal errorMar 15, 2022
@carsonbot
Copy link

Hey!

I think@PhilETaylor has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@GromNaNGromNaNforce-pushed thesymfony-ide-fatal branch 2 times, most recently from97a24e1 toc942cfeCompareMarch 17, 2022 17:04
@PhilETaylor
Copy link
Contributor

I think@PhilETaylor has recently worked with this code. Maybe they can help review this?

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.

GromNaN reacted with thumbs up emoji

@GromNaNGromNaN merged commit912ceb7 intosymfony:6.1Mar 17, 2022
@GromNaNGromNaN deleted the symfony-ide-fatal branchMarch 17, 2022 19:01
@fabpotfabpot mentioned this pull requestApr 15, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@ycerutoycerutoAwaiting requested review from ycerutoyceruto is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

6.1

Development

Successfully merging this pull request may close these issues.

4 participants

@GromNaN@carsonbot@PhilETaylor@nicolas-grekas

[8]ページ先頭

©2009-2025 Movatter.jp