mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:24:03 +00:00
hook() method
This commit is contained in:
parent
60a67bf901
commit
202a01f944
1 changed files with 13 additions and 0 deletions
|
|
@ -326,6 +326,19 @@ class TenantManager
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add an event hook.
|
||||||
|
* @alias eventListener
|
||||||
|
*
|
||||||
|
* @param string $name
|
||||||
|
* @param callable $listener
|
||||||
|
* @return self
|
||||||
|
*/
|
||||||
|
public function hook(string $name, callable $listener): self
|
||||||
|
{
|
||||||
|
return $this->eventListener($name, $listener);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute event listeners.
|
* Execute event listeners.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue