Method |
Description |
|
__construct ( $handlers = [], $upstream = null ) |
Construct |
|
__invoke ( $event, $object ) |
|
|
cork ( ) |
Prevent events from firing until uncork() is called |
|
discard ( ) |
Discards any events queued with cork() |
|
register ( $event, $callback ) |
Registers a handler for an event |
|
trigger ( $event, $object ) |
Triggers an event against the registered handlers |
|
uncork ( ) |
Execute events that have been queued since cork() was called |
|
unregister ( $event = null ) |
Unregisters an event handler based on event, or all |
|
wrap ( $event, $object, $callback ) |
Execute a closure, trigger a before{$event} and after{$event} |
|