cakephp/cakephp — pull request #927 by burzum (2012-10-29 15:10:42+00:00)
Title: Adding events to the ErrorHandler

Adding events to the error handler.

This allows it to inject customized actions into the error handling process without the need of extending the existing error handler. In my scenario this would be ideal for reporting fatal error via email for example.

The next step could be to move the existing code into a default ErrorEventListener or something. So far I've just added the events.