\ManaPHP\EventManagerInterface

Summary

Methods
Constants
attachEvent()
detachEvent()
fireEvent()
peekEvent()
addListener()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

attachEvent()

attachEvent(string  $event, callable  $handler, boolean  $appended = true) : void

Attach a listener to the events manager

Parameters

string $event
callable $handler
boolean $appended

detachEvent()

detachEvent(string  $event, callable  $handler) : void

Parameters

string $event
callable $handler

fireEvent()

fireEvent(string  $event, mixed  $data = array(), mixed  $source = null) : void

Fires an event in the events manager causing that the active listeners will be notified about it

Parameters

string $event
mixed $data
mixed $source

peekEvent()

peekEvent(string  $group, callable  $handler) : static

Parameters

string $group
callable $handler

Returns

static

addListener()

addListener(string  $listener, string  $group = null) : static

Parameters

string $listener
string $group

Returns

static