Abstract aggregate listener

 Methods

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

Should we display exceptions in error pages?

displayExceptions() : bool

Returns

bool

Retrieve the exception template

getExceptionTemplate() : string

Returns

string

Create an exception view model, and set the HTTP status code

prepareExceptionViewModel(\Zend\Mvc\MvcEvent $e) : void

todo dispatch.error does not halt dispatch unless a response is returned. As such, we likely need to trigger rendering as a low priority dispatch.error event (or goto a render event) to ensure rendering occurs, and that munging of view models occurs when expected.

Parameters

Flag: display exceptions in error pages?

setDisplayExceptions(bool $displayExceptions) : \Zend\Mvc\View\Http\ExceptionStrategy

Parameters

$displayExceptions

bool

Returns

Set the exception template

setExceptionTemplate(string $exceptionTemplate) : \Zend\Mvc\View\Http\ExceptionStrategy

Parameters

$exceptionTemplate

string

Returns

 Properties

 

Display exceptions?

$displayExceptions : bool

 

Name of exception template

$exceptionTemplate : string

 

$listeners

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

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