diff --git a/config/bootstrap.php b/config/bootstrap.php index 9b8dd98..739122d 100644 --- a/config/bootstrap.php +++ b/config/bootstrap.php @@ -35,8 +35,8 @@ use Cake\Cache\Cache; use Cake\Core\Configure; use Cake\Core\Configure\Engine\PhpConfig; use Cake\Datasource\ConnectionManager; -use Cake\Error\ConsoleErrorHandler; -use Cake\Error\ErrorHandler; +use Cake\Error\ErrorTrap; +use Cake\Error\ExceptionTrap; use Cake\Filesystem\File; use Cake\Http\ServerRequest; use Cake\Log\Log; @@ -132,9 +132,9 @@ ini_set('intl.default_locale', Configure::read('App.defaultLocale')); */ $isCli = PHP_SAPI === 'cli'; if ($isCli) { - (new ConsoleErrorHandler(Configure::read('Error')))->register(); + (new ErrorTrap(Configure::read('Error')))->register(); } else { - (new ErrorHandler(Configure::read('Error')))->register(); + (new ExceptionTrap(Configure::read('Error')))->register(); } /*