Skip to content

Commit

Permalink
Use FileDiscoverCacheDriver
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 committed Apr 16, 2024
1 parent e7daa12 commit 414c6e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Support/Discover/ComponentScout.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Foxws\WireUse\Support\Discover;

use Illuminate\View\Component;
use Spatie\StructureDiscoverer\Cache\LaravelDiscoverCacheDriver;
use Spatie\StructureDiscoverer\Cache\FileDiscoverCacheDriver;
use Spatie\StructureDiscoverer\Discover;
use Spatie\StructureDiscoverer\StructureScout;

Expand All @@ -26,10 +26,10 @@ public function identifier(): string
return $this->prefix ?? static::class;
}

public function cacheDriver(): LaravelDiscoverCacheDriver
public function cacheDriver(): FileDiscoverCacheDriver
{
return new LaravelDiscoverCacheDriver(
prefix: $this->identifier(),
return new FileDiscoverCacheDriver(
implode('/', [sys_get_temp_dir(), $this->identifier()]),
);
}

Expand Down

0 comments on commit 414c6e9

Please sign in to comment.