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

Initial draft

This commit is contained in:
Samuel Štancl 2020-04-30 20:48:15 +02:00
parent 4ff82a950d
commit 5d7d208e2f
19 changed files with 376 additions and 186 deletions

View file

@ -0,0 +1,11 @@
<?php
namespace Stancl\Tenancy\Contracts;
use Stancl\Tenancy\DatabaseConfig;
interface ManagesDatabaseUsers
{
public function createUser(DatabaseConfig $databaseConfig): void;
public function deleteUser(DatabaseConfig $databaseConfig): void;
}

View file

@ -6,6 +6,13 @@ namespace Stancl\Tenancy\Contracts;
interface TenantDatabaseManager
{
/**
* Return the config key that separates databases (e.g. 'database' or 'schema').
*
* @return string
*/
public function getSeparator(): string;
/**
* Create a database.
*