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

Do we display the routing failure?

displayNotFoundReason() : boolean

Returns

boolean

Detect if an error is a route not found condition

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

If a "controller not found" or "invalid controller" error type is encountered, sets the response status code to 404.

Parameters

$e

\Zend\Mvc\MvcEvent

Exceptions

\Zend\Mvc\Exception\RuntimeException
\Zend\ServiceManager\Exception\ServiceNotFoundException

Set flag indicating whether or not to display the routing failure

setDisplayNotFoundReason(boolean $displayNotFoundReason) : \Zend\Mvc\View\Console\RouteNotFoundStrategy

Parameters

$displayNotFoundReason

boolean

Returns

\Zend\Mvc\View\Console\RouteNotFoundStrategy

Build Console application banner text by querying currently loaded modules.

getConsoleBanner(\Zend\Console\Adapter\AdapterInterface $console, \Zend\ModuleManager\ModuleManagerInterface $moduleManager = null) : string

Parameters

$console

\Zend\Console\Adapter\AdapterInterface

$moduleManager

\Zend\ModuleManager\ModuleManagerInterface

Returns

string

Build Console usage information by querying currently loaded modules.

getConsoleUsage(\Zend\Console\Adapter\AdapterInterface $console, string $scriptName, \Zend\ModuleManager\ModuleManagerInterface $moduleManager = null) : string

Parameters

$console

\Zend\Console\Adapter\AdapterInterface

$scriptName

string

$moduleManager

\Zend\ModuleManager\ModuleManagerInterface

Exceptions

\Zend\Mvc\Exception\RuntimeException

Returns

string

Render a text table containing the data provided, that will fit inside console window's width.

renderTable($data, $cols, $consoleWidth) : string

Parameters

$data

$cols

$consoleWidth

Returns

string

Report the 404 reason and/or exceptions

reportNotFoundReason(\Zend\EventManager\EventInterface $e) : string

Parameters

$e

\Zend\EventManager\EventInterface

Returns

string

 Properties

 

Whether or not to display the reason for routing failure

$displayNotFoundReason : boolean

Default

true
 

$listeners

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

Default

array()
 

The reason for a not-found condition

$reason : boolean | string

Default

false