Open MatthiasKuehneEllerhold opened 5 years ago
@MatthiasKuehneEllerhold Thanks for your contribution. We need unit tests to cover these changes. Thanks !
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
.
This repository has been closed and moved to laminas/laminas-view; a new issue has been opened at https://github.com/laminas/laminas-view/issues/2.
This repository has been moved to laminas/laminas-view. If you feel that this patch is still relevant, please re-open against that repository, and reference this issue. To re-open, we suggest the following workflow:
git rebase -i origin/{branch}
)
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
...