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

Prefix tenant events with 'tenant.'

This commit is contained in:
Samuel Štancl 2019-10-27 20:42:23 +01:00
parent d97f45b587
commit 8258cc0e03

View file

@ -67,7 +67,7 @@ class TenantManager
*/
public function createTenant(Tenant $tenant): self
{
$this->event('creating', $tenant);
$this->event('tenant.creating', $tenant);
$this->ensureTenantCanBeCreated($tenant);
@ -98,7 +98,7 @@ class TenantManager
$this->database->createDatabase($tenant, $afterCreating);
$this->event('created', $tenant);
$this->event('tenant.created', $tenant);
return $this;
}
@ -111,7 +111,7 @@ class TenantManager
*/
public function deleteTenant(Tenant $tenant): self
{
$this->event('deleting', $tenant);
$this->event('tenant.deleting', $tenant);
$this->storage->deleteTenant($tenant);
@ -119,7 +119,7 @@ class TenantManager
$this->database->deleteDatabase($tenant);
}
$this->event('deleted', $tenant);
$this->event('tenant.deleted', $tenant);
return $this;
}