[TASK] Bugfixes and improvements

- Most routes now works along with getRoute() method.
This commit is contained in:
Simon Sessingø
2015-10-06 16:08:42 +02:00
parent 1c765476b5
commit 6354c3c766
6 changed files with 160 additions and 132 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ class RouterRoute extends RouterEntry {
return null;
}
public function getRoute($requestMethod, &$url) {
public function matchRoute($requestMethod, $url) {
// Check if request method is allowed
if(count($this->requestTypes) === 0 || in_array($requestMethod, $this->requestTypes)) {