Abstract aggregate listener

 Methods

__construct()

__construct(bool $enabled, array $allowedMethods) 

Parameters

$enabled

bool

$allowedMethods

array

Attach one or more listeners

attach(\Zend\EventManager\EventManagerInterface $events) : void

Implementors may add an optional $priority argument; the EventManager implementation will pass this to the aggregate.

Parameters

Detach all previously attached listeners

detach(\Zend\EventManager\EventManagerInterface $events) : void
Inherited

inherited_from \Zend\EventManager\AbstractListenerAggregate::detach()

Parameters

getAllowedMethods()

getAllowedMethods() : array

Returns

array

isEnabled()

isEnabled() : bool

Returns

bool

onRoute()

onRoute(\Zend\Mvc\MvcEvent $e) : void | \Zend\Http\Response

Parameters

Returns

setAllowedMethods()

setAllowedMethods(array $allowedMethods) 

Parameters

$allowedMethods

array

setEnabled()

setEnabled(bool $enabled) 

Parameters

$enabled

bool

 Properties

 

$allowedMethods

$allowedMethods : array

 

$enabled

$enabled : bool

 

$listeners

$listeners : \Zend\Stdlib\CallbackHandler[]
Inherited

inherited_from \Zend\EventManager\AbstractListenerAggregate::$$listeners