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

Delete legacy bootstrapper from the bootstrappers config, add info to the bootstrapper's docblock

This commit is contained in:
lukinovec 2023-04-20 17:05:18 +02:00
parent 30567d9650
commit 5a158b9537
2 changed files with 2 additions and 1 deletions

View file

@ -103,7 +103,6 @@ return [
Stancl\Tenancy\Bootstrappers\QueueTenancyBootstrapper::class, Stancl\Tenancy\Bootstrappers\QueueTenancyBootstrapper::class,
Stancl\Tenancy\Bootstrappers\BatchTenancyBootstrapper::class, Stancl\Tenancy\Bootstrappers\BatchTenancyBootstrapper::class,
// Stancl\Tenancy\Bootstrappers\PrefixCacheTenancyBootstrapper::class, // Stancl\Tenancy\Bootstrappers\PrefixCacheTenancyBootstrapper::class,
// Stancl\Tenancy\Bootstrappers\CacheTagsBootstrapper::class, // Note: DI won't work properly. PrefixCacheTenancyBootstrapper is the recommended way of separating cache
// Stancl\Tenancy\Bootstrappers\UrlTenancyBootstrapper::class, // Stancl\Tenancy\Bootstrappers\UrlTenancyBootstrapper::class,
// Stancl\Tenancy\Bootstrappers\SessionTenancyBootstrapper::class, // Stancl\Tenancy\Bootstrappers\SessionTenancyBootstrapper::class,
// Stancl\Tenancy\Bootstrappers\MailTenancyBootstrapper::class, // Queueing mail requires using QueueTenancyBootstrapper with $forceRefresh set to true // Stancl\Tenancy\Bootstrappers\MailTenancyBootstrapper::class, // Queueing mail requires using QueueTenancyBootstrapper with $forceRefresh set to true

View file

@ -14,6 +14,8 @@ use Stancl\Tenancy\Contracts\Tenant;
* todo name. * todo name.
* *
* Separate tenant cache using tagging. * Separate tenant cache using tagging.
* This is the legacy approach. Some things, like dependency injection, won't work properly with this bootstrapper.
* PrefixCacheTenancyBootstrapper is the recommended bootstrapper for cache separation.
*/ */
class CacheTagsBootstrapper implements TenancyBootstrapper class CacheTagsBootstrapper implements TenancyBootstrapper
{ {