mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 15:54:03 +00:00
Disable cache tagging by default, add CacheTagBootstrapper
This commit is contained in:
parent
5849afa4c8
commit
7ebfc375d6
5 changed files with 31 additions and 12 deletions
|
|
@ -2,16 +2,15 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Stancl\Tenancy\CacheManager;
|
||||
use Stancl\Tenancy\Tests\Etc\Tenant;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Stancl\Tenancy\Events\TenancyInitialized;
|
||||
use Stancl\Tenancy\Listeners\BootstrapTenancy;
|
||||
use Stancl\Tenancy\Bootstrappers\CacheTagBootstrapper;
|
||||
|
||||
beforeEach(function () {
|
||||
config(['tenancy.bootstrappers' => []]);
|
||||
config(['tenancy.bootstrappers' => [CacheTagBootstrapper::class]]);
|
||||
|
||||
CacheManager::$addTags = true;
|
||||
Event::listen(TenancyInitialized::class, BootstrapTenancy::class);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue