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:
parent
5145b1f13e
commit
fed8c0f9d1
4 changed files with 40 additions and 5 deletions
15
src/Contracts/Future/CanSetConnection.php
Normal file
15
src/Contracts/Future/CanSetConnection.php
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue