Skip to content

Commit

Permalink
chore: update core deps for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
rchavik committed Jun 25, 2023
1 parent 3d6880f commit 19462bf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
],
"require": {
"php": ">=7.2",
"cakephp/cakephp": "~4.1.0",
"cakephp/cakephp": "^4.4",
"cakephp/migrations": "^3.0",
"cakephp/plugin-installer": "~1.2.0",
"croogo/croogo": "5.0.x-dev",
"croogo/croogo": "dev-rchavik/5.0",
"mobiledetect/mobiledetectlib": "^2.8"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Croogo\Core\Error\ExceptionRenderer;

$appName = 'myapp';
$cachePrefix = "${appName}_";
$cachePrefix = "{$appName}_";

return [
/*
Expand Down
12 changes: 5 additions & 7 deletions config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
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\Http\ServerRequest;
use Cake\Log\Log;
use Cake\Mailer\Mailer;
Expand Down Expand Up @@ -120,16 +121,13 @@
/*
* 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.
*/
$isCli = PHP_SAPI === 'cli';
if ($isCli) {
require __DIR__ . '/bootstrap_cli.php';
}
Expand Down

0 comments on commit 19462bf

Please sign in to comment.