Commit 87166aa0 authored by Taylor Otwell's avatar Taylor Otwell

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

parent 766e54aa
...@@ -60,6 +60,7 @@ ini_set('display_errors', 'Off'); ...@@ -60,6 +60,7 @@ ini_set('display_errors', 'Off');
set_exception_handler(function($e) set_exception_handler(function($e)
{ {
require_once SYS_PATH.'exception/handler'.EXT; require_once SYS_PATH.'exception/handler'.EXT;
require_once SYS_PATH.'exception/examiner'.EXT;
Exception\Handler::make($e)->handle(); Exception\Handler::make($e)->handle();
}); });
...@@ -67,6 +68,7 @@ set_exception_handler(function($e) ...@@ -67,6 +68,7 @@ set_exception_handler(function($e)
set_error_handler(function($number, $error, $file, $line) set_error_handler(function($number, $error, $file, $line)
{ {
require_once SYS_PATH.'exception/handler'.EXT; 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(); Exception\Handler::make(new \ErrorException($error, $number, 0, $file, $line))->handle();
}); });
...@@ -76,6 +78,7 @@ register_shutdown_function(function() ...@@ -76,6 +78,7 @@ register_shutdown_function(function()
if ( ! is_null($error = error_get_last())) if ( ! is_null($error = error_get_last()))
{ {
require_once SYS_PATH.'exception/handler'.EXT; require_once SYS_PATH.'exception/handler'.EXT;
require_once SYS_PATH.'exception/examiner'.EXT;
extract($error); extract($error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment