Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit d63314b

Browse files
committed
[Routing] Adding missing parameter
Added the name of the route in `RouteCollection::add` method: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Routing/RouteCollection.php#L75
1 parent 0e1f9db commit d63314b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/routing/nested_matcher.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ following methods::
6767
}
6868

6969
foreach ($routes as $route) {
70-
$collection->add($route);
70+
$collection->add($route->getName(), $route);
7171
}
7272

7373
return $collection;

0 commit comments

Comments
 (0)