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
Do we display the routing failure?
displayNotFoundReason() : bool
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
Exceptions
Build Console application banner text by querying currently loaded
modules.
getConsoleBanner(\Zend\Console\Adapter\AdapterInterface $console, \Zend\ModuleManager\ModuleManagerInterface $moduleManager) : string
Parameters
Returns
string
Build Console usage information by querying currently loaded modules.
getConsoleUsage(\Zend\Console\Adapter\AdapterInterface $console, string $scriptName, \Zend\ModuleManager\ModuleManagerInterface $moduleManager) : string
Parameters
$scriptName
string
Exceptions
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
Properties
Whether or not to display the reason for routing failure
$displayNotFoundReason : bool
The reason for a not-found condition
$reason : bool | string