Skip to content

Commit 42a2c8e

Browse files
committed
Improve $harden annotation
1 parent b4244be commit 42a2c8e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Bootstrappers/DatabaseTenancyBootstrapper.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ class DatabaseTenancyBootstrapper implements TenancyBootstrapper
2020
/**
2121
* When true, throw an exception if a tenant gets connected to
2222
* another tenant's database or to the central database.
23+
*
24+
* If tenant's database name can be set during tenant creation by the users,
25+
* the user creates a tenant that could connect to the database of another tenant.
26+
* Setting $harden to true prevents this, but we keep it false by default since
27+
* letting users specify the tenant database names is not that common.
2328
*/
2429
public static bool $harden = false;
2530

0 commit comments

Comments
 (0)