[FEATURE] getRoute now support domains.

- Optimisations + bugfixes.
This commit is contained in:
Simon Sessingø
2015-12-19 09:21:12 +01:00
parent 98b1759967
commit cbaa0bcaac
3 changed files with 43 additions and 23 deletions
+5 -3
View File
@@ -60,9 +60,7 @@ class RouterGroup extends RouterEntry {
throw new RouterException('Method not allowed');
}
if($this->matchDomain($request) === null) {
return null;
}
$this->matchDomain($request);
return parent::renderRoute($request);
}
@@ -80,4 +78,8 @@ class RouterGroup extends RouterEntry {
return $this->exceptionHandler;
}
public function getDomain() {
return $this->domain;
}
}