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:
parent
8a269f8dd8
commit
e8c3c75d7c
5 changed files with 68 additions and 59 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue