mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Moving error handler configuration setting after application bootstrap is done, this will allow classes to be imported using the cache.
This commit is contained in:
parent
e68a1a094e
commit
b371de8cf4
1 changed files with 7 additions and 7 deletions
|
@ -368,18 +368,18 @@ class Configure {
|
|||
}
|
||||
}
|
||||
|
||||
App::init();
|
||||
App::build();
|
||||
if (!include(CONFIGS . 'bootstrap.php')) {
|
||||
trigger_error(sprintf(__("Can't find application bootstrap file. Please create %sbootstrap.php, and make sure it is readable by PHP."), CONFIGS), E_USER_ERROR);
|
||||
}
|
||||
|
||||
if (!empty(self::$_values['Error']['handler'])) {
|
||||
set_error_handler(self::$_values['Error']['handler']);
|
||||
}
|
||||
if (!empty(self::$_values['Exception']['handler'])) {
|
||||
set_exception_handler(self::$_values['Exception']['handler']);
|
||||
}
|
||||
|
||||
App::init();
|
||||
App::build();
|
||||
if (!include(CONFIGS . 'bootstrap.php')) {
|
||||
trigger_error(sprintf(__("Can't find application bootstrap file. Please create %sbootstrap.php, and make sure it is readable by PHP."), CONFIGS), E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue