1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 23:34:03 +00:00

Rename bootstrapper

This commit is contained in:
lukinovec 2023-04-13 07:07:11 +02:00
parent 35b0dea270
commit 4ab692bb05
4 changed files with 9 additions and 7 deletions

View file

@ -9,10 +9,10 @@ use Stancl\Tenancy\Facades\GlobalCache;
use Stancl\Tenancy\Events\TenancyInitialized;
use Stancl\Tenancy\Listeners\BootstrapTenancy;
use Stancl\Tenancy\Listeners\RevertToCentralContext;
use Stancl\Tenancy\Bootstrappers\CacheTaggingBootstrapper;
use Stancl\Tenancy\Bootstrappers\CacheTagsBootstrapper;
beforeEach(function () {
config(['tenancy.bootstrappers' => [CacheTaggingBootstrapper::class]]);
config(['tenancy.bootstrappers' => [CacheTagsBootstrapper::class]]);
Event::listen(TenancyInitialized::class, BootstrapTenancy::class);
Event::listen(TenancyEnded::class, RevertToCentralContext::class);