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

$tenant->run()

This commit is contained in:
Samuel Štancl 2019-10-09 18:52:38 +02:00
parent f9c9bf088d
commit c8a6fed3c6
3 changed files with 89 additions and 0 deletions

View file

@ -206,6 +206,10 @@ class TenantManager
*/
public function initializeTenancy(Tenant $tenant): self
{
if ($this->initialized) {
$this->endTenancy();
}
$this->setTenant($tenant);
$this->bootstrapTenancy($tenant);
$this->initialized = true;