contao/contao-bundle — pull request #4 by aschempp (2014-08-16 21:14:33+00:00)
Title: [WIP] Response exception

Based on previous ideas in #1 and our discussion on the open call on thursday (2014-08-14).

The `ResponseException` allows developers to throw an exception in their frontend modules or other methods to prevent the page content from being rendered. This is a big advantage versus the current *echo + exit* practice, because it will use a Symfony response.

The `TemplateResponseException` is a replacement for the `die_nicely` method.

TODO:
- [ ] Update `die_nicely` to throw an exception (for backwards compatibility)

Up for discussion @contao/developers