thomascantonnet/tc-errorhandler

ErrorHandler for ZF2 apps

v1.2.5 2013-09-12 11:43 UTC

This package is not auto-updated.

Last update: 2024-12-21 16:25:23 UTC


README

Build Status

This library aims at providing a simple way to handle errors in all of your ZF2 application. When an error is triggered, whether it is in your controller, your libraries or anywhere in your views, an exception is thrown hence preserving your application from unmonitored errors. It is then possible to log them through the MvcEvent::EVENT_RENDER_ERROR event.

Installation

Suggested installation method is through composer:

php composer.phar require thomascantonnet/tc-errorhandler:1.*

Setup

If you use Zend Framework 2, you can now enable this module in your application by adding it to config/application.config.php as TCErrorHandler. Make sure to set it as the first module to be loaded, or at least before any module you want to monitor.