mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 07:54:03 +00:00
Prefix tenant events with 'tenant.'
This commit is contained in:
parent
d97f45b587
commit
8258cc0e03
1 changed files with 4 additions and 4 deletions
|
|
@ -67,7 +67,7 @@ class TenantManager
|
||||||
*/
|
*/
|
||||||
public function createTenant(Tenant $tenant): self
|
public function createTenant(Tenant $tenant): self
|
||||||
{
|
{
|
||||||
$this->event('creating', $tenant);
|
$this->event('tenant.creating', $tenant);
|
||||||
|
|
||||||
$this->ensureTenantCanBeCreated($tenant);
|
$this->ensureTenantCanBeCreated($tenant);
|
||||||
|
|
||||||
|
|
@ -98,7 +98,7 @@ class TenantManager
|
||||||
|
|
||||||
$this->database->createDatabase($tenant, $afterCreating);
|
$this->database->createDatabase($tenant, $afterCreating);
|
||||||
|
|
||||||
$this->event('created', $tenant);
|
$this->event('tenant.created', $tenant);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
@ -111,7 +111,7 @@ class TenantManager
|
||||||
*/
|
*/
|
||||||
public function deleteTenant(Tenant $tenant): self
|
public function deleteTenant(Tenant $tenant): self
|
||||||
{
|
{
|
||||||
$this->event('deleting', $tenant);
|
$this->event('tenant.deleting', $tenant);
|
||||||
|
|
||||||
$this->storage->deleteTenant($tenant);
|
$this->storage->deleteTenant($tenant);
|
||||||
|
|
||||||
|
|
@ -119,7 +119,7 @@ class TenantManager
|
||||||
$this->database->deleteDatabase($tenant);
|
$this->database->deleteDatabase($tenant);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->event('deleted', $tenant);
|
$this->event('tenant.deleted', $tenant);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue