zendframework/zf2 — pull request #2965 by weierophinney (2012-11-14 12:35:58+00:00)
Title: [#2964] Retrieve application events before triggering

- The block that handled exceptions in DefaultRenderingStrategy was
calling trigger() on the event object -- clearly a problem. Code has
been modified to retrieve the event manager from the application
object composed in the event, and trigger from there.
- Additionally, a potential infinite loop was removed (the render event
was getting triggered a second time from within the catch clause)
- Tests added to ensure that the render.error event is now properly
triggered.