Skip to content
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

Error templates ? #8851

Closed
mickaelandrieu opened this issue May 22, 2015 · 7 comments
Closed

Error templates ? #8851

mickaelandrieu opened this issue May 22, 2015 · 7 comments

Comments

@mickaelandrieu
Copy link

Hi,

I saw in resources\error folder from laravel/laravel a 503 error template. Did you plan to provide a custom template for others ? Is it already the case ?

@GrahamCampbell
Copy link
Member

Doubt it. There's probably some sample resources out there somewhere. Otherwise, we'd expect people to implement this as they want.

@GrahamCampbell
Copy link
Member

https://github.com/GrahamCampbell/Laravel-Exceptions might be of use to you?

@mickaelandrieu
Copy link
Author

Thank you for your answer and your library sounds very well :)

but not realy, I'm not a huge fan of WhoopsBundle (I did an implementation for Symfony but I think Symfony Webdebug application is far more performant and complete).

Does the error templating system works like in Symfony's one ? Listening on kernel exception event and then returns a view ?

@GrahamCampbell
Copy link
Member

but not realy, I'm not a huge fan of WhoopsBundle (I did an implementation for Symfony but I think Symfony Webdebug application is far more performant and complete).

It's not just a whoops bundle. It provides a framework for massive customisation and easy setup for your errors.

@GrahamCampbell
Copy link
Member

You can register your own "displayers" that know how to deal with different content types in different situations.

@GrahamCampbell
Copy link
Member

This is what prod error pages for html look like out of the box: https://styleci.io/123.

@mickaelandrieu
Copy link
Author

@GrahamCampbell wow ! Ok, this is clearly far from a simple implementation.
And I think this doesn't need to much work to be used in Symfony world too :)

Thank you, I think I will try to create a Symfony port (for fun). Good night!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants