Abstract aggregate listener

package Default
inherited_from \Zend\EventManager\AbstractListenerAggregate

 Methods

__construct()

__construct(boolean $enabled = true, array $allowedMethods = array()

Parameters

$enabled

boolean

$allowedMethods

array

{@inheritdoc}

attach(\Zend\EventManager\EventManagerInterface $events) 

Parameters

$events

Detach all previously attached listeners

detach(\Zend\EventManager\EventManagerInterface $events) 
Inherited
inherited_from \Zend\EventManager\ListenerAggregateInterface::detach()

Parameters

$events

getAllowedMethods()

getAllowedMethods() : array

Returns

array

isEnabled()

isEnabled() : boolean

Returns

boolean

onRoute()

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

Parameters

$e

\Zend\Mvc\MvcEvent

Returns

void\Zend\Http\Response

setAllowedMethods()

setAllowedMethods(array $allowedMethods) 

Parameters

$allowedMethods

array

setEnabled()

setEnabled(boolean $enabled) 

Parameters

$enabled

boolean

 Properties

 

$allowedMethods

$allowedMethods : array

Default

array(\Zend\Http\Request::METHOD_CONNECT, \Zend\Http\Request::METHOD_DELETE, \Zend\Http\Request::METHOD_GET, \Zend\Http\Request::METHOD_HEAD, \Zend\Http\Request::METHOD_OPTIONS, \Zend\Http\Request::METHOD_PATCH, \Zend\Http\Request::METHOD_POST, \Zend\Http\Request::METHOD_PUT, \Zend\Http\Request::METHOD_PROPFIND, \Zend\Http\Request::METHOD_TRACE)
 

$enabled

$enabled : boolean

Default

true
 

$listeners

$listeners : array<mixed,\Zend\Stdlib\CallbackHandler>

Default

array()