Open weierophinney opened 4 years ago
@MatthiasKuehneEllerhold Thanks for your contribution. We need unit tests to cover these changes. Thanks !
Originally posted by @michalbundyra at https://github.com/zendframework/zend-view/pull/200#issuecomment-553784614
The zend-router only throws the Zend\Mvc\Router
exceptions if its 2.x. Thats only tested in the DEPS=lowest
setting on travis, see here: https://travis-ci.org/zendframework/zend-view/jobs/611765820?utm_medium=notification&utm_source=github_status
Cant seem to replicate it locally though. But i dont have 7.1 set up anymore.
So the Zend\Mvc\Router
exceptions will be tested at DEPS=lowest
while the Zend\Router
will be tested at DEPS=latest
.
Originally posted by @MatthiasKuehneEllerhold at https://github.com/zendframework/zend-view/pull/200#issuecomment-553843440
This PR will change 2 things:
Add a comment to the HelperPluginManager that the "url" and "basePath" View-Helper factories are overwritten in the
ViewHelperManagerFactory
of zend-mvc.Change the exception text of the "url" View-helper if the router cant assemble the URL to include more information:
Before:
After:
Advantages:
Open questions:
composer.json
...Originally posted by @MatthiasKuehneEllerhold at https://github.com/zendframework/zend-view/pull/200