1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-05-07 09:54:03 +00:00
tenancy/src/Contracts
Samuel Štancl 4578c9ed7d Features refactor
Features are now *always* bootstrapped, even if Tenancy is not resolved
from the container.

Previous implementations include
https://github.com/tenancy-for-laravel/v4/pull/19
https://github.com/archtechx/tenancy/pull/1021

Bug originally reported here
https://github.com/archtechx/tenancy/issues/949

This implementation is much simpler, we do not distinguish between
features that should be "always bootstrapped" and features that should
only be bootstrapped after Tenancy is resolved. All features should work
without issues if they're bootstrapped when TSP::boot() is called. We
also add a Tenancy::bootstrapFeatures() method that can be used to
bootstrap any features dynamically added at runtime that weren't
bootstrapped in TSP::boot(). The function keeps track of which features
were already bootstrapped so it doesn't bootstrap them again.

The only potentialy risky thing in this implementation is that we're now
resolving Tenancy in TSP::boot() (previously Tenancy was not being
resolved) but that shouldn't be causing any issues.
2025-08-31 23:18:44 +02:00
..
Domain.php more phpstan fixes 2024-08-06 18:26:46 +02:00
Feature.php Features refactor 2025-08-31 23:18:44 +02:00
SingleDomainTenant.php Enable single_line_empty_body phpcsfixer rule 2024-04-02 04:31:03 +02:00
TenancyBootstrapper.php get down to 59 phpstan errors 2022-09-29 22:20:55 +02:00
Tenant.php Simplify Tenant contract (remove run method), move run logic to Tenancy, add generics 2024-03-01 08:42:11 +01:00
TenantCannotBeCreatedException.php get down to 21 phpstan errors 2022-09-29 23:39:35 +02:00
TenantCouldNotBeIdentifiedException.php remove ignition dependencies 2025-06-18 23:29:24 +02:00
TenantResolver.php get phpstan errors down from 252 to 189 2022-08-30 05:44:23 +02:00
UniqueIdentifierGenerator.php [4.x] Improve id generators (#1300) 2025-01-21 17:06:15 +01:00