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

View File

@@ -60,6 +60,7 @@ ini_set('display_errors', 'Off');
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_exception_handler(function($e)
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 @@ register_shutdown_function(function()
if ( ! is_null($error = error_get_last()))
{
require_once SYS_PATH.'exception/handler'.EXT;
require_once SYS_PATH.'exception/examiner'.EXT;
extract($error);