mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
[FEATURE] getRoute now support domains.
- Optimisations + bugfixes.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user