Skip to content

Commit e1bff18

Browse files
authored
Cake51 (#38)
* Remove deprecations. * Fix up Cache debug output.
1 parent b9575e4 commit e1bff18

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/Command/CurrentConfigValidateCommand.php

+8-4
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static function getDescription(): string {
3535
* @return int|null|void The exit code or null for success
3636
*/
3737
public function execute(Arguments $args, ConsoleIo $io) {
38-
$io->out('DB default:');
38+
$io->out('### DB default ###');
3939
try {
4040
$db = ConnectionManager::get('default');
4141
$io->out(print_r($db->config(), true));
@@ -44,7 +44,7 @@ public function execute(Arguments $args, ConsoleIo $io) {
4444
}
4545

4646
$io->out();
47-
$io->out('DB test:');
47+
$io->out('### DB test ###');
4848
try {
4949
$db = ConnectionManager::get('test');
5050
$io->out(print_r($db->config(), true));
@@ -53,8 +53,12 @@ public function execute(Arguments $args, ConsoleIo $io) {
5353
}
5454

5555
$io->out();
56-
$io->out('Cache:');
57-
$io->out(print_r(Cache::getConfig('_cake_core_'), true));
56+
$io->out('### Cache ###');
57+
58+
$configured = Cache::configured();
59+
foreach ($configured as $key) {
60+
$io->out(print_r(Cache::getConfig($key), true));
61+
}
5862

5963
return CommandInterface::CODE_SUCCESS;
6064
}

0 commit comments

Comments
 (0)