1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 14:34:04 +00:00

hook() method

This commit is contained in:
Samuel Štancl 2019-09-30 17:13:47 +02:00
parent 60a67bf901
commit 202a01f944

View file

@ -326,6 +326,19 @@ class TenantManager
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.
*