-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Remove the mention of TwigBundle\ExceptionController and extending doc #13222
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
Conversation
3ad44f3
to
a3a74c7
Compare
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.
Looks good, thanks!
90365f6
to
dafce33
Compare
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.
Thanks
Thanks Yonel! Do you think it makes sense to also document how to create your own error renderer? Or is that something that a user shouldn't do? Please create an issue if you want to have it documented, so we don't forget :) |
Hi @wouterj, thanks for merge! About your question, the error renderer layer is something internal and there is no extension point to add a new error renderer easily, besides doing that shouldn't be too common because we've I think there is no need to document how to create a new error renderer as long as there is no new error context. |
Fixes #13071
Fixes #12920
I would no longer recommend to extend directly from
ErrorController
. It adds a new error renderer layer that covers the most common error contexts (CLI, HTTP-html, HTTP-APIs), in the worst case you can decorare them, but it shouldn't be necessary.