From cbdb804af7bd9cc0ef827ab215f903560db4abe2 Mon Sep 17 00:00:00 2001 From: Jasper Tey Date: Fri, 29 Mar 2024 23:54:36 -0400 Subject: [PATCH] Fix typos and match Laravel's cache:clear output formatting. --- src/Commands/CacheClearCommand.php | 2 +- src/Commands/CacheCommand.php | 4 ++-- src/Listeners/CacheClearSubscriber.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Commands/CacheClearCommand.php b/src/Commands/CacheClearCommand.php index 5b7f668..7e4c465 100644 --- a/src/Commands/CacheClearCommand.php +++ b/src/Commands/CacheClearCommand.php @@ -15,6 +15,6 @@ public function handle() { DomainCache::clear(); - $this->info('Domain cache cleared.'); + $this->components->info('Domain cache cleared successfully.'); } } diff --git a/src/Commands/CacheCommand.php b/src/Commands/CacheCommand.php index 5e137e6..4d4fe68 100644 --- a/src/Commands/CacheCommand.php +++ b/src/Commands/CacheCommand.php @@ -15,10 +15,10 @@ public function handle() { DomainAutoloader::cacheProviders(); - $this->info('Cached domain providers.'); + $this->components->info('Domain providers cached successfully.'); DomainAutoloader::cacheCommands(); - $this->info('Cached domain commands.'); + $this->components->info('Domain commands cached successfully.'); } } diff --git a/src/Listeners/CacheClearSubscriber.php b/src/Listeners/CacheClearSubscriber.php index 9267bde..76886d6 100644 --- a/src/Listeners/CacheClearSubscriber.php +++ b/src/Listeners/CacheClearSubscriber.php @@ -3,7 +3,7 @@ namespace Lunarstorm\LaravelDDD\Listeners; use Illuminate\Events\Dispatcher; -use Lunarstorm\LaravelDDD\Support\DomainAutoloader; +use Lunarstorm\LaravelDDD\Support\DomainCache; class CacheClearSubscriber { @@ -13,7 +13,7 @@ public function __construct() public function handle(): void { - DomainAutoloader::clearCache(); + DomainCache::clear(); } /**