Skip to content
This repository has been archived by the owner on Jul 4, 2018. It is now read-only.

Commit

Permalink
doFlush returns the same RouteCollection instance now, so there's no …
Browse files Browse the repository at this point in the history
…need to add the sub-collection routes to itself
  • Loading branch information
Carson Full committed Aug 13, 2015
1 parent ab6aabb commit 8518a8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Silex/ControllerCollection.php
Expand Up @@ -210,7 +210,7 @@ private function doFlush($prefix, RouteCollection $routes)
$routes->add($name, $controller->getRoute());
$controller->freeze();
} else {
$routes->addCollection($controller->doFlush($prefix.$controller->prefix, $routes));
$controller->doFlush($prefix.$controller->prefix, $routes);
}
}

Expand Down

0 comments on commit 8518a8e

Please sign in to comment.