293. Class

293.1. Zend\Mvc\View\Console\RouteNotFoundStrategy

293.1.1. Methods

293.1.1.1. attach

attach()

Attach the aggregate to the specified event manager

Parameters:EventManagerInterface
Return type:void

293.1.1.2. detach

detach()

Detach aggregate listeners from the specified event manager

Parameters:EventManagerInterface
Return type:void

293.1.1.3. setDisplayNotFoundReason

setDisplayNotFoundReason()

Set flag indicating whether or not to display the routing failure

Parameters:bool
Return type:RouteNotFoundStrategy

293.1.1.4. displayNotFoundReason

displayNotFoundReason()

Do we display the routing failure?

Return type:bool

293.1.1.5. handleRouteNotFoundError

handleRouteNotFoundError()

Detect if an error is a route not found condition

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

Parameters:MvcEvent
Throws RuntimeException:
 
Throws ServiceNotFoundException:
 
Return type:void

293.1.1.6. getConsoleBanner

getConsoleBanner()

Build Console application banner text by querying currently loaded modules.

Parameters:
  • ModuleManagerInterface
  • ConsoleAdapter
Return type:

string

293.1.1.7. getConsoleUsage

getConsoleUsage()

Build Console usage information by querying currently loaded modules.

Parameters:
  • ConsoleAdapter
  • string
  • ModuleManagerInterface
Return type:

string

Throws :

RuntimeException

293.1.1.8. renderTable

renderTable()

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

Parameters:
  • $data
  • $cols
  • $consoleWidth
Return type:

string

293.1.1.9. reportNotFoundReason

reportNotFoundReason()

Report the 404 reason and/or exceptions

Parameters:ZendEventManagerEventInterface
Return type:string