registerHook()
registerHook(string $key, \LiftKit\Application\Hook\Hook $hook)
Registers a hook with the application for future interactions.
Parameters
string | $key | String identifier for hook used in subsequent calls to bindHook() and triggerHook(). |
\LiftKit\Application\Hook\Hook | $hook | The hook to be registered. |
Throws
- \LiftKit\Application\Exception\InvalidHookIdentifier
- \LiftKit\Application\Exception\ReregisterHook