Commit e85e8f95 by Taylor Otwell

Moved error class load up in front controller to match config and str loads.

parent 3f04484b
...@@ -27,9 +27,10 @@ define('BASE_PATH', realpath('../').'/'); ...@@ -27,9 +27,10 @@ define('BASE_PATH', realpath('../').'/');
define('EXT', '.php'); define('EXT', '.php');
// -------------------------------------------------------------- // --------------------------------------------------------------
// Load the configuration and string classes. // Load the configuration, error, and string classes.
// -------------------------------------------------------------- // --------------------------------------------------------------
require SYS_PATH.'config'.EXT; require SYS_PATH.'config'.EXT;
require SYS_PATH.'error'.EXT;
require SYS_PATH.'str'.EXT; require SYS_PATH.'str'.EXT;
// -------------------------------------------------------------- // --------------------------------------------------------------
...@@ -48,11 +49,6 @@ System\Benchmark::$marks['laravel'] = LARAVEL_START; ...@@ -48,11 +49,6 @@ System\Benchmark::$marks['laravel'] = LARAVEL_START;
error_reporting((System\Config::get('error.detail')) ? E_ALL | E_STRICT : 0); error_reporting((System\Config::get('error.detail')) ? E_ALL | E_STRICT : 0);
// -------------------------------------------------------------- // --------------------------------------------------------------
// Ensure Error class loads before any errors fire.
// --------------------------------------------------------------
class_exists('System\Error');
// --------------------------------------------------------------
// Register the error handlers. // Register the error handlers.
// -------------------------------------------------------------- // --------------------------------------------------------------
set_exception_handler(function($e) set_exception_handler(function($e)
......
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