mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 21:14:03 +00:00
use Repository in service class DI
This commit is contained in:
parent
2f91309990
commit
19255fd98f
2 changed files with 5 additions and 3 deletions
|
|
@ -4,12 +4,12 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Stancl\Tenancy\Tests\Etc;
|
namespace Stancl\Tenancy\Tests\Etc;
|
||||||
|
|
||||||
use Illuminate\Cache\CacheManager;
|
use Illuminate\Cache\Repository;
|
||||||
|
|
||||||
class CacheAction
|
class CacheAction
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
protected CacheManager $cache
|
protected Repository $cache
|
||||||
){
|
){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,9 @@ use Stancl\Tenancy\Tests\Etc\CacheAction;
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
config([
|
config([
|
||||||
'tenancy.bootstrappers' => [PrefixCacheTenancyBootstrapper::class],
|
'tenancy.bootstrappers' => [
|
||||||
|
PrefixCacheTenancyBootstrapper::class
|
||||||
|
],
|
||||||
'cache.default' => 'redis',
|
'cache.default' => 'redis',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue