Add default error, exception, and shutdown handlers

This commit is contained in:
Kijin Sung 2016-02-12 14:14:55 +09:00
parent 81ef35a887
commit 664695553b
5 changed files with 398 additions and 1 deletions

View file

@ -3,7 +3,7 @@
/**
* Set error reporting rules.
*/
error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE ^ E_STRICT ^ E_DEPRECATED);
error_reporting(E_ALL ^ E_NOTICE ^ E_STRICT ^ E_DEPRECATED);
/**
* Suppress date/time errors until the internal time zone is set (see below).
@ -198,6 +198,11 @@ require_once RX_BASEDIR . 'vendor/autoload.php';
*/
Rhymix\Framework\Config::init();
/**
* Install the debugger.
*/
Rhymix\Framework\Debug::registerErrorHandlers(error_reporting());
/**
* Set the internal timezone.
*/