[FEATURE] Added support for multiple aliases

This commit is contained in:
Simon Sessingø
2016-04-07 19:33:04 +02:00
parent 6e102711a8
commit 27371dfa11
2 changed files with 25 additions and 7 deletions
+1 -1
View File
@@ -373,7 +373,7 @@ class RouterBase {
$route = $this->controllerUrlMap[$i];
// Check an alias exist, if the matches - use it
if($route instanceof RouterRoute && strtolower($route->getAlias()) === strtolower($controller)) {
if($route instanceof RouterRoute && $route->hasAlias($controller)) {
return $this->processUrl($route, $route->getMethod(), $parameters, $getParams);
}