mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:24:03 +00:00
Set $persisted in TenantManager::createTenant() (#272)
* Set $persisted in TenantManager::createTenant() * Apply fixes from StyleCI
This commit is contained in:
parent
5ebb68e860
commit
6ad1a6639f
3 changed files with 4 additions and 4 deletions
|
|
@ -41,7 +41,7 @@ class Tenant implements ArrayAccess
|
||||||
/** @var Repository */
|
/** @var Repository */
|
||||||
protected $config;
|
protected $config;
|
||||||
|
|
||||||
/** @var StorageDriver */
|
/** @var StorageDriver|CanDeleteKeys */
|
||||||
protected $storage;
|
protected $storage;
|
||||||
|
|
||||||
/** @var TenantManager */
|
/** @var TenantManager */
|
||||||
|
|
@ -233,8 +233,6 @@ class Tenant implements ArrayAccess
|
||||||
$this->manager->createTenant($this);
|
$this->manager->createTenant($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->persisted = true;
|
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,8 @@ class TenantManager
|
||||||
|
|
||||||
$this->storage->createTenant($tenant);
|
$this->storage->createTenant($tenant);
|
||||||
|
|
||||||
|
$tenant->persisted = true;
|
||||||
|
|
||||||
/** @var \Illuminate\Contracts\Queue\ShouldQueue[]|callable[] $afterCreating */
|
/** @var \Illuminate\Contracts\Queue\ShouldQueue[]|callable[] $afterCreating */
|
||||||
$afterCreating = [];
|
$afterCreating = [];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue