Zend\EventManager\SharedEventManagerInterface::attach
Attach a listener to an event
Signature
public function attach(string|array
$id,
[string
$event = 1,
[callable
$callback = 1,
[integer
$priority = 1]]] )
Parameters
$id
— object- Identifier(s) for event emitting component(s)
$event
— string$callback
— object- PHP Callback
$priority
— integer- Priority at which listener should execute
Returns
- void