zendframework/zf2 — pull request #2959 by weierophinney (2012-11-13 21:19:40+00:00)
Title: Feature/render listener

This request builds on #2812, which is intended as a solution for #2528. The idea is to allow catching renderer exceptions, and triggering an additional event when one is detected.

The main differences between this PR and #2812 are:

- Moves the exception handling into the DefaultRenderingStrategy. This better mirrors how the route and dispatch exceptions are handled, and keeps the Application class clean.
- Moved the clearChildren() definition out of ModelInterface and into ClearableModelInterface in order to remove a BC break. ViewModel implements this by default. (I also added methods for clearVariables() and clearOptiosn() to the new interface.)
- Fixed a testing issue created by the fact that exceptions in rendering are now actually handled by the PhpRenderer.