1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 05:04:04 +00:00

Rename CacheManagerService

This commit is contained in:
lukinovec 2023-01-06 07:17:55 +01:00
parent 52db2a0c06
commit d945d1facc

View file

@ -7,13 +7,13 @@ namespace Stancl\Tenancy\Tests\Etc;
use Illuminate\Cache\CacheManager; use Illuminate\Cache\CacheManager;
use Illuminate\Cache\Repository; use Illuminate\Cache\Repository;
class CacheManagerService class SpecificCacheStoreService
{ {
public Repository $cache; public Repository $cache;
public function __construct(CacheManager $cacheManager) public function __construct(CacheManager $cacheManager, string $cacheStoreName)
{ {
$this->cache = $cacheManager->driver('redis2'); $this->cache = $cacheManager->store($cacheStoreName);
} }
public function handle(): void public function handle(): void