thomascantonnet / tc-errorhandler
ErrorHandler for ZF2 apps
Installs: 1 074
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.3
README
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.