8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 236c26f commit 49971fbCopy full SHA for 49971fb
cookbook/routing/custom_route_loader.rst
@@ -85,14 +85,14 @@ type you want. The resource name itself is not actually used in the example::
85
$routes = new RouteCollection();
86
87
// prepare a new route
88
- $pattern = '/extra/{parameter}';
+ $path = '/extra/{parameter}';
89
$defaults = array(
90
'_controller' => 'AcmeDemoBundle:Demo:extra',
91
);
92
$requirements = array(
93
'parameter' => '\d+',
94
95
- $route = new Route($pattern, $defaults, $requirements);
+ $route = new Route($path, $defaults, $requirements);
96
97
// add the new route to the route collection:
98
$routeName = 'extraRoute';
0 commit comments