Skip to content

Commit

Permalink
Fix: multiple subgroups not work (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
thenotsoft authored and samdark committed Jan 19, 2020
1 parent 8f9d553 commit 74d7fbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FastRoute.php
Expand Up @@ -416,7 +416,7 @@ function (RouteCollector $r) use ($group) {
foreach ($group->items as $index => $item) {
if ($item instanceof Group) {
$this->injectGroup($item, $r);
return;
continue;
}

$modifiedItem = $item->pattern($group->getPrefix() . $item->getPattern());
Expand All @@ -431,7 +431,7 @@ function (RouteCollector $r) use ($group) {

// Skip feeding FastRoute collector if valid cached data was already loaded
if ($this->hasCache) {
return;
continue;
}

$r->addRoute($item->getMethods(), $item->getPattern(), $modifiedItem->getPattern());
Expand Down

0 comments on commit 74d7fbd

Please sign in to comment.