1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 23:14:03 +00:00
This commit is contained in:
Samuel Štancl 2019-09-06 18:52:04 +02:00
commit 5d2b1e3a72
5 changed files with 15 additions and 6 deletions

View file

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
namespace Stancl\Tenancy\Contracts; namespace Stancl\Tenancy\Contracts;
use Stancl\Tenancy\Tenant; use Stancl\Tenancy\Tenant;
@ -7,5 +9,6 @@ use Stancl\Tenancy\Tenant;
interface TenancyBootstrapper interface TenancyBootstrapper
{ {
public function start(Tenant $tenant); // todo better name? public function start(Tenant $tenant); // todo better name?
public function end(Tenant $tenant); // todo arg? public function end(Tenant $tenant); // todo arg?
} }

View file

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
namespace Stancl\Tenancy; namespace Stancl\Tenancy;
use Illuminate\Database\DatabaseManager as BaseDatabaseManager; use Illuminate\Database\DatabaseManager as BaseDatabaseManager;

View file

@ -1,10 +1,12 @@
<?php <?php
declare(strict_types=1);
namespace Stancl\Tenancy\TenancyBoostrappers; namespace Stancl\Tenancy\TenancyBoostrappers;
use Stancl\Tenancy\DatabaseManager;
use Illuminate\Foundation\Application; use Illuminate\Foundation\Application;
use Stancl\Tenancy\Contracts\TenancyBootstrapper; use Stancl\Tenancy\Contracts\TenancyBootstrapper;
use Stancl\Tenancy\DatabaseManager;
class DatabaseTenancyBootstrapper implements TenancyBootstrapper class DatabaseTenancyBootstrapper implements TenancyBootstrapper
{ {

View file

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
namespace Stancl\Tenancy\Traits; namespace Stancl\Tenancy\Traits;
trait HasArrayAccess trait HasArrayAccess