1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 20:14:03 +00:00

Remove redundant CacheManager extend() call

This commit is contained in:
lukinovec 2023-01-05 16:14:20 +01:00
parent 30d73d2694
commit 42381d00e2

View file

@ -181,18 +181,6 @@ test('stores other than the default one are not prefixed', function () {
config(['cache.default' => 'redis']); config(['cache.default' => 'redis']);
config(['cache.stores.redis2' => config('cache.stores.redis')]); config(['cache.stores.redis2' => config('cache.stores.redis')]);
app(CacheManager::class)->extend('redis2', function($config) {
$redis = $this->app['redis'];
$connection = $config['connection'] ?? 'default';
$store = new RedisStore($redis, $this->getPrefix($config), $connection);
return $this->repository(
$store->setLockConnection($config['lock_connection'] ?? $connection)
);
});
$this->app->singleton(CacheManagerService::class); $this->app->singleton(CacheManagerService::class);
app()->make(CacheManagerService::class)->handle(); app()->make(CacheManagerService::class)->handle();