Class RouteNotFoundStrategy

Summary

Fully Qualified Name: Zend\Mvc\Console\View\RouteNotFoundStrategy
Extends: AbstractListenerAggregate

Description

Methods

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

Method Details

attach()

{@inheritDoc}

Parameter Name Type Description
$events
$priority

Returns:

detach()

{@inheritDoc}

Parameter Name Type Description
$events

Returns:

displayNotFoundReason()

Do we display the routing failure?

Returns: bool

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.

Parameter Name Type Description
$e \MvcEvent

Returns: void

setDisplayNotFoundReason()

Set flag indicating whether or not to display the routing failure

Parameter Name Type Description
$displayNotFoundReason bool

Returns: \RouteNotFoundStrategy

Top