From 0db288c404d80876ee0e6d2e9e8b1c1bcb8f35b2 Mon Sep 17 00:00:00 2001 From: Siau Pheng Date: Tue, 3 Nov 2026 08:45:57 +0700 Subject: [PATCH] Update IndexController and CacheCommand; add missing DateInterval and DateTime imports, and change info message to white for better visibility --- app/Controller/IndexController.php | 2 ++ app/commands/CacheCommand.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Controller/IndexController.php b/app/Controller/IndexController.php index d178a2a..2e5aad0 100644 --- a/app/Controller/IndexController.php +++ b/app/Controller/IndexController.php @@ -16,6 +16,8 @@ declare(strict_types=1); namespace App\Controller; +use DateInterval; +use DateTime; use flight\Engine; use flight\Session; use flight\database\SimplePdo; diff --git a/app/commands/CacheCommand.php b/app/commands/CacheCommand.php index cea32c1..cbdd109 100644 --- a/app/commands/CacheCommand.php +++ b/app/commands/CacheCommand.php @@ -37,7 +37,7 @@ class CacheCommand extends AbstractBaseCommand { $cache = new Cache($app); $cache->set_asset($asset); $ares = $cache->Make_Cache(); - if (is_array($ares)) $io->info("Processed of {$ares['user_count']} user.", true); + if (is_array($ares)) $io->white("Processed of {$ares['user_count']} user.", true); $io->ok("Done.", true); }