-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[WIP] Better exception page #15792
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
[WIP] Better exception page #15792
Conversation
hason
commented
Sep 14, 2015
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Tests pass? | |
Fixed tickets | |
License | MIT |
Doc PR |
- add twig files into stack trace
- add syntax highlighters for PHP and Twig with symfony.com's color scheme (reuse from [WIP][DX] Better exception page #12363)
- use VarDumper for function arguments
- improve style of exception page (assistance from @javiereguiluz ?)
<tag name="exception.processor" /> | ||
</service> | ||
|
||
<service id="debug.arguments_processor" class="Symfony\Component\Debug\ArgumentsFlattenExceptionProcessor" public="false"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would name them debug.exception_processor.*
instead, to group related services
3e53160
to
cae0933
Compare
use Symfony\Component\DependencyInjection\Reference; | ||
|
||
/** | ||
* Registers the code highlighters. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registers -> Register?
nice work 👍 |
* | ||
* @param array $trace The trace | ||
*/ | ||
public function replaceTrace($trace) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about adding an array
type hint instead of casting to (array)
?
@hason Any updates? |
Closing as there is no recent update and many comments that would need to be fixed. It does not apply cleanly either. @hason Feel free to reopen a new PR on master when you have time. Thanks. |