@@ -41,7 +41,7 @@ your autoloader to load the Routing component::
41
41
42
42
$matcher = new UrlMatcher($routes, $context);
43
43
44
- $parameters = $matcher->match( '/foo' );
44
+ $parameters = $matcher->match('/foo');
45
45
// array('controller' => 'MyController', '_route' => 'route_name')
46
46
47
47
.. note ::
@@ -97,7 +97,7 @@ Take the following route, which combines several of these ideas::
97
97
// ...
98
98
99
99
$parameters = $matcher->match('/archive/2012-01');
100
- // array('controller' => 'showArchive', 'month' => '2012-01', '_route' => ' ...' )
100
+ // array('controller' => 'showArchive', 'month' => '2012-01', '_route' => ...)
101
101
102
102
$parameters = $matcher->match('/archive/foo');
103
103
// throws ResourceNotFoundException
@@ -136,8 +136,8 @@ default requirements and default options to all routes of a subtree::
136
136
$rootCollection = new RouteCollection();
137
137
138
138
$subCollection = new RouteCollection();
139
- $subCollection->add( /* ...*/ );
140
- $subCollection->add( /* ...*/ );
139
+ $subCollection->add(...);
140
+ $subCollection->add(...);
141
141
142
142
$rootCollection->addCollection($subCollection, '/prefix', array('_scheme' => 'https'));
143
143
0 commit comments