|
|
@ -74,7 +74,7 @@ class Route {
|
|
|
|
// Wildcard or exact match
|
|
|
|
// Wildcard or exact match
|
|
|
|
if ($this->pattern === '*' || $this->pattern === $url) {
|
|
|
|
if ($this->pattern === '*' || $this->pattern === $url) {
|
|
|
|
if ($this->pass) {
|
|
|
|
if ($this->pass) {
|
|
|
|
array_push($this->params, $this);
|
|
|
|
$this->params[] = $this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -114,7 +114,7 @@ class Route {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($this->pass) {
|
|
|
|
if ($this->pass) {
|
|
|
|
array_push($this->params, $this);
|
|
|
|
$this->params[] = $this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->regex = $regex;
|
|
|
|
$this->regex = $regex;
|
|
|
@ -134,4 +134,4 @@ class Route {
|
|
|
|
public function matchMethod($method) {
|
|
|
|
public function matchMethod($method) {
|
|
|
|
return count(array_intersect(array($method, '*'), $this->methods)) > 0;
|
|
|
|
return count(array_intersect(array($method, '*'), $this->methods)) > 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|