8000 minor #4818 [Routing] Removed deprecated usage (WouterJ) · symfony/symfony-docs@f7179df · GitHub
[go: up one dir, main page]

Skip to content

Commit f7179df

Browse files
committed
minor #4818 [Routing] Removed deprecated usage (WouterJ)
This PR was merged into the 2.3 branch. Discussion ---------- [Routing] Removed deprecated usage A very little detail, but to be consistent I think this is better. Commits ------- 49971fb Use path to be consistent
2 parents 892586b + 49971fb commit f7179df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbook/routing/custom_route_loader.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ type you want. The resource name itself is not actually used in the example::
8585
$routes = new RouteCollection();
8686

8787
// prepare a new route
88-
$pattern = '/extra/{parameter}';
88+
$path = '/extra/{parameter}';
8989
$defaults = array(
9090
'_controller' => 'AcmeDemoBundle:Demo:extra',
9191
);
9292
$requirements = array(
9393
'parameter' => '\d+',
9494
);
95-
$route = new Route($pattern, $defaults, $requirements);
95+
$route = new Route($path, $defaults, $requirements);
9696

9797
// add the new route to the route collection:
9898
$routeName = 'extraRoute';

0 commit comments

Comments
 (0)
0