mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Add default error, exception, and shutdown handlers
This commit is contained in:
parent
81ef35a887
commit
664695553b
5 changed files with 398 additions and 1 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue