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:
parent
b4244be658
commit
42a2c8efd9
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue