mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Moved error class load up in front controller to match config and str loads.
This commit is contained in:
parent
3f04484b83
commit
e85e8f957a
@ -27,9 +27,10 @@ define('BASE_PATH', realpath('../').'/');
|
||||
define('EXT', '.php');
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// Load the configuration and string classes.
|
||||
// Load the configuration, error, and string classes.
|
||||
// --------------------------------------------------------------
|
||||
require SYS_PATH.'config'.EXT;
|
||||
require SYS_PATH.'error'.EXT;
|
||||
require SYS_PATH.'str'.EXT;
|
||||
|
||||
// --------------------------------------------------------------
|
||||
@ -47,11 +48,6 @@ System\Benchmark::$marks['laravel'] = LARAVEL_START;
|
||||
// --------------------------------------------------------------
|
||||
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.
|
||||
// --------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user