1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-06-20 22:54:05 +00:00

Improve $harden annotation

This commit is contained in:
lukinovec 2026-06-08 10:03:07 +02:00
parent b4244be658
commit 42a2c8efd9

View file

@ -20,6 +20,11 @@ class DatabaseTenancyBootstrapper implements TenancyBootstrapper
/** /**
* When true, throw an exception if a tenant gets connected to * When true, throw an exception if a tenant gets connected to
* another tenant's database or to the central database. * another tenant's database or to the central database.
*
* If tenant's database name can be set during tenant creation by the users,
* the user creates a tenant that could connect to the database of another tenant.
* Setting $harden to true prevents this, but we keep it false by default since
* letting users specify the tenant database names is not that common.
*/ */
public static bool $harden = false; public static bool $harden = false;