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

use Repository in service class DI

This commit is contained in:
Abrar Ahmad 2022-12-07 18:24:55 +05:00
parent 2f91309990
commit 19255fd98f
2 changed files with 5 additions and 3 deletions

View file

@ -4,12 +4,12 @@ declare(strict_types=1);
namespace Stancl\Tenancy\Tests\Etc;
use Illuminate\Cache\CacheManager;
use Illuminate\Cache\Repository;
class CacheAction
{
public function __construct(
protected CacheManager $cache
protected Repository $cache
){
}

View file

@ -12,7 +12,9 @@ use Stancl\Tenancy\Tests\Etc\CacheAction;
beforeEach(function () {
config([
'tenancy.bootstrappers' => [PrefixCacheTenancyBootstrapper::class],
'tenancy.bootstrappers' => [
PrefixCacheTenancyBootstrapper::class
],
'cache.default' => 'redis',
]);