Zend\Mvc\View\Http\RouteNotFoundStrategy::injectNotFoundReason
Inject the not-found reason into the model
If $displayNotFoundReason is enabled, checks to see if $reason is set, and, if so, injects it into the model. If not, it injects Application::ERROR_CONTROLLER_CANNOT_DISPATCH.
Signature
protected function injectNotFoundReason(ViewModel
$model )
Parameters
$model
— Zend\View\Model\ViewModel
Returns
- void