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

Simplify TenantWithDatabase interface, move tenantConfig() logic

This commit is contained in:
Samuel Štancl 2024-03-01 10:48:33 +01:00
parent 8a269f8dd8
commit e8c3c75d7c
5 changed files with 68 additions and 59 deletions

View file

@ -11,13 +11,4 @@ interface TenantWithDatabase extends Tenant
{
/** Get the tenant's database config. */
public function database(): DatabaseConfig;
/** Get the internal prefix. */
public static function internalPrefix(): string;
/** Get an internal key. */
public function getInternal(string $key): mixed;
/** Set internal key. */
public function setInternal(string $key, mixed $value): static;
}