Skip to content

Commit

Permalink
Additional commit for MR8
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Mar 8, 2023
1 parent f0e4354 commit be7b1bf
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions app/config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
use Cake\Database\TypeFactory;
use Cake\Database\Type\StringType;
use Cake\Datasource\ConnectionManager;
use Cake\Error\ConsoleErrorHandler;
use Cake\Error\ErrorHandler;
use Cake\Error\ErrorTrap;
use Cake\Error\ExceptionTrap;
use Cake\Http\ServerRequest;
use Cake\Log\Log;
use Cake\Mailer\Mailer;
Expand Down Expand Up @@ -128,12 +128,8 @@
* Register application error and exception handlers.
*/
$isCli = PHP_SAPI === 'cli';
if ($isCli) {
(new ConsoleErrorHandler(Configure::read('Error')))->register();
} else {
(new ErrorHandler(Configure::read('Error')))->register();
}

(new ErrorTrap(Configure::read('Error')))->register();
(new ExceptionTrap(Configure::read('Error')))->register();
/*
* Include the CLI bootstrap overrides.
*/
Expand Down

0 comments on commit be7b1bf

Please sign in to comment.