Zend\Mvc\View\Console\RouteNotFoundStrategy
Synopsis
class RouteNotFoundStrategy
extends AbstractListenerAggregate
{
- // members
- protected bool $displayNotFoundReason;
- protected bool|string $reason;
- // Inherited members from AbstractListenerAggregate
- protected array $listeners;
- // methods
- public void attach()
- public RouteNotFoundStrategy setDisplayNotFoundReason()
- public bool displayNotFoundReason()
- public void handleRouteNotFoundError()
- protected string getConsoleBanner()
- protected string getConsoleUsage()
- protected string renderTable()
- protected string reportNotFoundReason()
- // Inherited methods from AbstractListenerAggregate
- public void detach()
Hierarchy
Tasks
Line | Task |
---|---|
280 | implement fetching available console routes from router |
Members
protected
- $displayNotFoundReason
—
Zend\Mvc\View\Console\bool
Whether or not to display the reason for routing failure - $listeners — array
- $reason
—
Zend\Mvc\View\Console\bool|string
The reason for a not-found condition
Methods
protected
- getConsoleBanner() — Build Console application banner text by querying currently loaded modules.
- getConsoleUsage() — Build Console usage information by querying currently loaded modules.
- renderTable() — Render a text table containing the data provided, that will fit inside console window's width.
- reportNotFoundReason() — Report the 404 reason and/or exceptions
public
- attach() — {@inheritDoc}
- displayNotFoundReason() — Do we display the routing failure?
- handleRouteNotFoundError() — Detect if an error is a route not found condition
- setDisplayNotFoundReason() — Set flag indicating whether or not to display the routing failure
Inherited from Zend\EventManager\AbstractListenerAggregate
public
- detach() — {@inheritDoc}