diff --git a/src/LaravelDDDServiceProvider.php b/src/LaravelDDDServiceProvider.php index eb166ed..c7cb0bf 100644 --- a/src/LaravelDDDServiceProvider.php +++ b/src/LaravelDDDServiceProvider.php @@ -3,7 +3,7 @@ namespace Lunarstorm\LaravelDDD; use Illuminate\Support\Facades\Event; -use Lunarstorm\LaravelDDD\Support\CacheClearSubscriber; +use Lunarstorm\LaravelDDD\Listeners\CacheClearSubscriber; use Lunarstorm\LaravelDDD\Support\DomainAutoloader; use Spatie\LaravelPackageTools\Package; use Spatie\LaravelPackageTools\PackageServiceProvider; diff --git a/src/Support/CacheClearSubscriber.php b/src/Listeners/CacheClearSubscriber.php similarity index 76% rename from src/Support/CacheClearSubscriber.php rename to src/Listeners/CacheClearSubscriber.php index 3ba0999..5f643e8 100644 --- a/src/Support/CacheClearSubscriber.php +++ b/src/Listeners/CacheClearSubscriber.php @@ -1,6 +1,6 @@ getMessage(), 'No such file or directory')) { + if (!str_contains($exception->getMessage(), 'No such file or directory')) { dump($exception->getMessage()); throw $exception; }