Commit 7facddba authored by Fabien Potencier's avatar Fabien Potencier

minor #1215 Remove duplicate call to add collection (CarsonF)

This PR was merged into the 1.3 branch.

Discussion
----------

Remove duplicate call to add collection

`doFlush` returns the same `RouteCollection` instance now, so there's no need to add the sub-collection routes to itself.

Commits
-------

8518a8e6 doFlush returns the same RouteCollection instance now, so there's no need to add the sub-collection routes to itself
parents ab6aabba 8518a8e6
......@@ -210,7 +210,7 @@ class ControllerCollection
$routes->add($name, $controller->getRoute());
$controller->freeze();
} else {
$routes->addCollection($controller->doFlush($prefix.$controller->prefix, $routes));
$controller->doFlush($prefix.$controller->prefix, $routes);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment