Skip to content

Commit b23765f

Browse files
committed
deprecate parameters parameter to getRouteByName(s) as it would be really bad design to have routes with the same system name that only differ by parameters. any special handling should happen in the generator.
1 parent 8ffcc7f commit b23765f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

RouteProviderInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public function getRouteCollectionForRequest(Request $request);
4141
* Find the route using the provided route name (and parameters)
4242
*
4343
* @param string $name the route name to fetch
44-
* @param array $parameters the parameters as they are passed to the
45-
* UrlGeneratorInterface::generate call
44+
* @param array $parameters DEPRECATED the parameters as they are passed
45+
* to the UrlGeneratorInterface::generate call
4646
*
4747
* @return \Symfony\Component\Routing\Route
4848
*
@@ -62,9 +62,9 @@ public function getRouteByName($name, $parameters = array());
6262
* $this->getRouteByName()
6363
*
6464
* @param array $names the list of names to retrieve
65-
* @param array $parameters the parameters as they are passed to the
66-
* UrlGeneratorInterface::generate call. (Only one array, not one for
67-
* each entry in $names.
65+
* @param array $parameters DEPRECATED the parameters as they are passed to
66+
* the UrlGeneratorInterface::generate call. (Only one array, not one
67+
* for each entry in $names.
6868
*
6969
* @return \Symfony\Component\Routing\Route[] iterable thing with the keys
7070
* the names of the $names argument.

0 commit comments

Comments
 (0)