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(); } /**