From e1bff18a983a6cbef691a7816c177d092c5e179f Mon Sep 17 00:00:00 2001 From: Mark Scherer Date: Wed, 2 Oct 2024 00:29:02 +0200 Subject: [PATCH] Cake51 (#38) * Remove deprecations. * Fix up Cache debug output. --- src/Command/CurrentConfigValidateCommand.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Command/CurrentConfigValidateCommand.php b/src/Command/CurrentConfigValidateCommand.php index 43d38ed..da9e569 100644 --- a/src/Command/CurrentConfigValidateCommand.php +++ b/src/Command/CurrentConfigValidateCommand.php @@ -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)); @@ -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)); @@ -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; }