[OPTIMISATION] Optimised router handling - router will now use the order provided when loading routes.

This commit is contained in:
Simon Sessingø
2015-10-27 14:01:19 +01:00
parent f5a32cf520
commit c2cf2334e7
2 changed files with 2 additions and 10 deletions
-8
View File
@@ -100,14 +100,6 @@ class RouterBase {
// Loop through each route-request
$this->processRoutes($this->routes);
// Make sure the urls is in the right order when comparing
usort($this->controllerUrlMap, function($a, $b) {
if(stripos($b->getUrl(), '{') !== false) {
return $a->getUrl();
}
return strcmp($b->getUrl(), $a->getUrl());
});
$routeNotAllowed = false;
/* @var $route RouterEntry */