]> git.mxchange.org Git - friendica.git/commit
Make Router::getModuleClass throw exceptions
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 11 Oct 2019 15:55:02 +0000 (11:55 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 11 Oct 2019 23:59:05 +0000 (19:59 -0400)
commit4ee9e21a4f5e177f3815c89d309af5a005bd88c3
tree9598368d4d31fb12fef807017136350783c235f5
parentbfcae2f79adfcc3eab0938c5a0dccd459a599f48
Make Router::getModuleClass throw exceptions

- Add new MethodNotAllowedModule
- Add new Module->determineClass catch blocks
- Update Module and Router tests
src/App/Module.php
src/App/Router.php
src/Module/HTTPException/MethodNotAllowed.php [new file with mode: 0644]
src/Module/HTTPException/PageNotFound.php [new file with mode: 0644]
src/Module/PageNotFound.php [deleted file]
tests/src/App/ModuleTest.php
tests/src/App/RouterTest.php