Load the exception examiner explicitly instead of using the auto-loader.
This commit is contained in:
parent
766e54aa2d
commit
87166aa0ea
|
|
@ -60,6 +60,7 @@
|
|||
set_exception_handler(function($e)
|
||||
{
|
||||
require_once SYS_PATH.'exception/handler'.EXT;
|
||||
require_once SYS_PATH.'exception/examiner'.EXT;
|
||||
|
||||
Exception\Handler::make($e)->handle();
|
||||
});
|
||||
|
|
@ -67,6 +68,7 @@
|
|||
set_error_handler(function($number, $error, $file, $line)
|
||||
{
|
||||
require_once SYS_PATH.'exception/handler'.EXT;
|
||||
require_once SYS_PATH.'exception/examiner'.EXT;
|
||||
|
||||
Exception\Handler::make(new \ErrorException($error, $number, 0, $file, $line))->handle();
|
||||
});
|
||||
|
|
@ -76,6 +78,7 @@
|
|||
if ( ! is_null($error = error_get_last()))
|
||||
{
|
||||
require_once SYS_PATH.'exception/handler'.EXT;
|
||||
require_once SYS_PATH.'exception/examiner'.EXT;
|
||||
|
||||
extract($error);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue