Skip to content

Commit

Permalink
Use framework cache-directory fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 committed Apr 17, 2024
1 parent 414c6e9 commit b652868
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Support/Discover/ComponentScout.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function identifier(): string
public function cacheDriver(): FileDiscoverCacheDriver
{
return new FileDiscoverCacheDriver(
implode('/', [sys_get_temp_dir(), $this->identifier()]),
$this->cacheDirectory()
);
}

Expand All @@ -46,4 +46,9 @@ public function path(string $path): static

return $this;
}

protected function cacheDirectory(): string
{
return realpath(config('wireuse.cache-path', storage_path('framework/cache')));
}
}

0 comments on commit b652868

Please sign in to comment.