Skip to content

Commit

Permalink
Cake51 (#38)
Browse files Browse the repository at this point in the history
* Remove deprecations.

* Fix up Cache debug output.
  • Loading branch information
dereuromark authored Oct 1, 2024
1 parent b9575e4 commit e1bff18
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/Command/CurrentConfigValidateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static function getDescription(): string {
* @return int|null|void The exit code or null for success
*/
public function execute(Arguments $args, ConsoleIo $io) {
$io->out('DB default:');
$io->out('### DB default ###');
try {
$db = ConnectionManager::get('default');
$io->out(print_r($db->config(), true));
Expand All @@ -44,7 +44,7 @@ public function execute(Arguments $args, ConsoleIo $io) {
}

$io->out();
$io->out('DB test:');
$io->out('### DB test ###');
try {
$db = ConnectionManager::get('test');
$io->out(print_r($db->config(), true));
Expand All @@ -53,8 +53,12 @@ public function execute(Arguments $args, ConsoleIo $io) {
}

$io->out();
$io->out('Cache:');
$io->out(print_r(Cache::getConfig('_cake_core_'), true));
$io->out('### Cache ###');

$configured = Cache::configured();
foreach ($configured as $key) {
$io->out(print_r(Cache::getConfig($key), true));
}

return CommandInterface::CODE_SUCCESS;
}
Expand Down

0 comments on commit e1bff18

Please sign in to comment.