commit works for me, can now do the following in a controller to invoke a 404 page.
Please update so that it merges cleanly.
[ZF2-224 ZF2-228] Create 404 view model when detecting 404 responses
- Registers Zend\Mvc\View\RouteNotFoundStrategy::prepareNotFoundViewModel
with Zend\Stdlib\Dispatchable dispatch event to ensure it executes at
the appropriate time during the request lifecycle.
@akrabat I've rebased, and it should be merge-able now.
I'm unsure of why this uses MvcEvent::EVENT_DISPATCH and not MvcEvent::EVENT_DISPATCH_ERROR