Skip to content

Commit 7849678

Browse files
committed
Fixed code examples in components/routing
1 parent 5b3ca6d commit 7849678

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/routing.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ your autoloader to load the Routing component::
4141

4242
$matcher = new UrlMatcher($routes, $context);
4343

44-
$parameters = $matcher->match( '/foo' );
44+
$parameters = $matcher->match('/foo');
4545
// array('controller' => 'MyController', '_route' => 'route_name')
4646

4747
.. note::
@@ -97,7 +97,7 @@ Take the following route, which combines several of these ideas::
9797
// ...
9898

9999
$parameters = $matcher->match('/archive/2012-01');
100-
// array('controller' => 'showArchive', 'month' => '2012-01', '_route' => '...')
100+
// array('controller' => 'showArchive', 'month' => '2012-01', '_route' => ...)
101101

102102
$parameters = $matcher->match('/archive/foo');
103103
// throws ResourceNotFoundException
@@ -136,8 +136,8 @@ default requirements and default options to all routes of a subtree::
136136
$rootCollection = new RouteCollection();
137137

138138
$subCollection = new RouteCollection();
139-
$subCollection->add( /*...*/ );
140-
$subCollection->add( /*...*/ );
139+
$subCollection->add(...);
140+
$subCollection->add(...);
141141

142142
$rootCollection->addCollection($subCollection, '/prefix', array('_scheme' => 'https'));
143143

0 commit comments

Comments
 (0)