mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Integrating the ConsoleErrorHandler into the console environment.
This commit is contained in:
parent
60e44660c3
commit
a44b35311d
1 changed files with 2 additions and 0 deletions
|
@ -257,6 +257,8 @@ class ShellDispatcher {
|
|||
|
||||
$boot = file_exists(ROOT . DS . APP_DIR . DS . 'config' . DS . 'bootstrap.php');
|
||||
require CORE_PATH . 'cake' . DS . 'bootstrap.php';
|
||||
require CORE_PATH . 'cake' . DS . 'console' . DS . 'console_error_handler.php';
|
||||
set_exception_handler(array('ConsoleErrorHandler', 'handleException'));
|
||||
|
||||
if (!file_exists(APP_PATH . 'config' . DS . 'core.php')) {
|
||||
include_once CORE_PATH . 'cake' . DS . 'console' . DS . 'templates' . DS . 'skel' . DS . 'config' . DS . 'core.php';
|
||||
|
|
Loading…
Add table
Reference in a new issue