diff --git a/src/Support/ModularServiceProvider.php b/src/Support/ModularServiceProvider.php index 22120ca..2109359 100644 --- a/src/Support/ModularServiceProvider.php +++ b/src/Support/ModularServiceProvider.php @@ -50,7 +50,7 @@ public function register(): void $this->app->singleton(ModuleRegistry::class, function() { return new ModuleRegistry( $this->getModulesBasePath(), - $this->app->bootstrapPath('cache/modules.php') + $this->app->bootstrapPath('cache/app_modules.php') ); }); diff --git a/tests/Commands/ModulesCacheTest.php b/tests/Commands/ModulesCacheTest.php index 1a9d264..a726d55 100644 --- a/tests/Commands/ModulesCacheTest.php +++ b/tests/Commands/ModulesCacheTest.php @@ -17,7 +17,7 @@ public function test_it_writes_to_cache_file(): void $this->artisan(ModulesCache::class); - $expected_path = $this->getBasePath().$this->normalizeDirectorySeparators('bootstrap/cache/modules.php'); + $expected_path = $this->getBasePath().$this->normalizeDirectorySeparators('bootstrap/cache/app_modules.php'); $this->assertFileExists($expected_path); diff --git a/tests/Commands/ModulesClearTest.php b/tests/Commands/ModulesClearTest.php index 4d41c74..6868ec2 100644 --- a/tests/Commands/ModulesClearTest.php +++ b/tests/Commands/ModulesClearTest.php @@ -15,7 +15,7 @@ public function test_it_writes_to_cache_file(): void { $this->artisan(ModulesCache::class); - $expected_path = $this->getBasePath().$this->normalizeDirectorySeparators('bootstrap/cache/modules.php'); + $expected_path = $this->getBasePath().$this->normalizeDirectorySeparators('bootstrap/cache/app_modules.php'); $this->assertFileExists($expected_path);