t4web / error-handler
ZF2 Module. For handle and log errors
1.0.2
2016-08-17 12:49 UTC
Requires
- php: ^5.5 || ^7.0
- t4web/log: ~1.0.0
- zendframework/zend-eventmanager: ^2.5
- zendframework/zend-modulemanager: ^2.5
- zendframework/zend-servicemanager: ^2.5
This package is auto-updated.
Last update: 2024-11-26 18:27:13 UTC
README
ZF2 Module. For handle and log errors
If enabled you can log all PHP errors\notices\warnings etc.
Installation
Add this project in your composer.json:
"require": { "t4web/error-handler": "~1.0.0" }
Now tell composer to download T4web\ErrorHandler
by running the command:
$ php composer.phar update
Post installation
Enabling it in your application.config.php
file.
<?php return array( 'modules' => array( // ... 'T4web\Log', 'T4web\ErrorHandler', ), // ... );
Introduction
For example, we generate some errors. In our Application\Controller\IndexController
:
public function indexAction() { $e = $a['i']; // this is Notice asd(); // this is Fatal return new ViewModel(); }