Fully Qualified Name: | Laminas\Mvc\Console\View\RouteNotFoundStrategy |
Extends: | AbstractListenerAggregate |
Name | Description | Defined By |
---|---|---|
attach() | {@inheritDoc} | RouteNotFoundStrategy |
detach() | {@inheritDoc} | AbstractListenerAggregate |
displayNotFoundReason() | Do we display the routing failure? | RouteNotFoundStrategy |
handleRouteNotFoundError() | Detect if an error is a route not found condition | RouteNotFoundStrategy |
setDisplayNotFoundReason() | Set flag indicating whether or not to display the routing failure | RouteNotFoundStrategy |
{@inheritDoc}
Parameter Name | Type | Description |
---|---|---|
$events | ||
$priority |
Returns:
{@inheritDoc}
Parameter Name | Type | Description |
---|---|---|
$events |
Returns:
Do we display the routing failure?
Returns: bool
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.
Parameter Name | Type | Description |
---|---|---|
$e | \MvcEvent |
Returns: void
Set flag indicating whether or not to display the routing failure
Parameter Name | Type | Description |
---|---|---|
$displayNotFoundReason | bool |
Returns: \RouteNotFoundStrategy