Abstract aggregate listener

package Default
inherited_from \Zend\EventManager\AbstractListenerAggregate

 Methods

{@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

Should we display exceptions in error pages?

displayExceptions() : boolean

Returns

boolean

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

$e

\Zend\Mvc\MvcEvent

Flag: display exceptions in error pages?

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

Parameters

$displayExceptions

boolean

Returns

\Zend\Mvc\View\Http\ExceptionStrategy

Set the exception template

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

Parameters

$exceptionTemplate

string

Returns

\Zend\Mvc\View\Http\ExceptionStrategy

 Properties

 

Display exceptions?

$displayExceptions : boolean

Default

false
 

Name of exception template

$exceptionTemplate : string

Default

'error'
 

$listeners

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

Default

array()