1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 23:54:03 +00:00

[2.2.4] [WIP] Respect custom connections when creating database (#244)

* Add TenantDatabaseManager::setConnection()

* Apply fixes from StyleCI
This commit is contained in:
Samuel Štancl 2019-12-11 22:16:25 +01:00 committed by GitHub
parent 5145b1f13e
commit fed8c0f9d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 5 deletions

View file

@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace Stancl\Tenancy\Contracts\Future;
use Illuminate\Database\Connection;
/**
* This interface *might* be part of the TenantDatabaseManager interface in 3.x.
*/
interface CanSetConnection
{
public function setConnection(Connection $connection);
}