ZF2-228: ActionController#notFoundAction does not set template
With the recent view layer update, problems started with the notFoundAction() in Zend\Mvc\Controller\ActionController. In the ZendSkeletonApplication there is a view for 404 pages (error/404), but with setting the routeMatch action parameter to not-found, the resolver might look for /not-found as well. For example in Foo\Controller\BarController the resolver will look for bar/not-found. Link: https://github.com/zendframework/zf2/…
This happens when a dispatchable controller can be found, but with an action in the route which does not exist. I know this is not a real ZF2 issue for the library code, but merely in combination with ZendSkeletopApplication (and thus also other apps) this can create some serious issues. I did not make a PR as I am unsure how to solve this issue.