Fixed full match not being removed from args list.
This commit is contained in:
parent
a5cfba6b96
commit
add621716a
|
@ -93,6 +93,7 @@ class HttpRouter implements IRouter {
|
||||||
foreach($this->dynamicRoutes as $rPattern => $rMethods)
|
foreach($this->dynamicRoutes as $rPattern => $rMethods)
|
||||||
if(preg_match($rPattern, $path, $args) === 1) {
|
if(preg_match($rPattern, $path, $args) === 1) {
|
||||||
$methods = $rMethods;
|
$methods = $rMethods;
|
||||||
|
array_shift($args);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue