addIdentifiers()
attach()
attachAggregate()
clearListeners()
detach()
detachAggregate()
getEvents()
getIdentifiers()
getListeners()
setEventClass()
setIdentifiers()
trigger()
triggerUntil()
Interface for messengers
addIdentifiers(string | int | array | \Traversable $identifiers) : \Zend\EventManager\EventManagerInterface
attach(string $event, \Zend\EventManager\callable $callback, int $priority) : \Zend\Stdlib\CallbackHandler
string
\Zend\EventManager\callable
int
Priority at which to register listener
attachAggregate(\Zend\EventManager\ListenerAggregateInterface $aggregate, int $priority) : mixed
int
If provided, a suggested priority for the aggregate to use
mixed
return value of {@link ListenerAggregateInterface::attach()}clearListeners(string $event) : void
string
detach(\Zend\Stdlib\CallbackHandler | \Zend\EventManager\ListenerAggregateInterface $listener) : bool
bool
detachAggregate(\Zend\EventManager\ListenerAggregateInterface $aggregate) : mixed
mixed
return value of {@link ListenerAggregateInterface::detach()}getEvents() : array
array
getIdentifiers() : array
array
getListeners(string $event) : array | object
string
array
object
setEventClass(string $class) : \Zend\EventManager\EventManagerInterface
setIdentifiers(string | int | array | \Traversable $identifiers) : \Zend\EventManager\EventManagerInterface
trigger(string | \Zend\EventManager\EventInterface $event, object | string $target, array | object $argv, null | \Zend\EventManager\callable $callback) : \Zend\EventManager\ResponseCollection
Should allow handling the following scenarios: - Passing Event object only - Passing event name and Event object only - Passing event name, target, and Event object - Passing event name, target, and array|ArrayAccess of arguments - Passing event name, target, array|ArrayAccess of arguments, and callback
string\Zend\EventManager\EventInterface
objectstring
arrayobject
null\Zend\EventManager\callable
triggerUntil(string | \Zend\EventManager\EventInterface $event, object | string $target, array | object $argv, \Zend\EventManager\callable $callback) : \Zend\EventManager\ResponseCollection
Should allow handling the following scenarios: - Passing Event object and callback only - Passing event name, Event object, and callback only - Passing event name, target, Event object, and callback - Passing event name, target, array|ArrayAccess of arguments, and callback
deprecated | Please use trigger() |
---|
string\Zend\EventManager\EventInterface
objectstring
arrayobject
\Zend\EventManager\callable