Skip to content

Commit

Permalink
minor #4818 [Routing] Removed deprecated usage (WouterJ)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wouterj committed Jan 16, 2015
2 parents 892586b + 49971fb commit f7179df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cookbook/routing/custom_route_loader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ type you want. The resource name itself is not actually used in the example::
$routes = new RouteCollection();

// prepare a new route
$pattern = '/extra/{parameter}';
$path = '/extra/{parameter}';
$defaults = array(
'_controller' => 'AcmeDemoBundle:Demo:extra',
);
$requirements = array(
'parameter' => '\d+',
);
$route = new Route($pattern, $defaults, $requirements);
$route = new Route($path, $defaults, $requirements);

// add the new route to the route collection:
$routeName = 'extraRoute';
Expand Down

0 comments on commit f7179df

Please sign in to comment.