Load the exception examiner explicitly instead of using the auto-loader.

This commit is contained in:
Taylor Otwell 2011-08-17 09:52:17 -05:00
parent 766e54aa2d
commit 87166aa0ea
1 changed files with 3 additions and 0 deletions

View File

@ -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);