Skip to content

Commit abc2c9b

Browse files
saro0hweaverryan
authored andcommitted
Fixed route name
1 parent a97e7e8 commit abc2c9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/controller.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ an example:
360360
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
361361
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
362362
363-
<route id="acme_privacy" pattern="/about.html">
363+
<route id="about" pattern="/about.html">
364364
<default key="_controller">FrameworkBundle:Template:template</default>
365365
<default key="template">AcmeBundle:Static:about.html.twig</default>
366366
</route>
@@ -372,7 +372,7 @@ an example:
372372
use Symfony\Component\Routing\Route;
373373
374374
$collection = new RouteCollection();
375-
$collection->add('acme_privacy', new Route('/about.html', array(
375+
$collection->add('about', new Route('/about.html', array(
376376
'_controller' => 'FrameworkBundle:Template:template',
377377
'template' => 'AcmeBundle:Static:about.html.twig',
378378
)));

0 commit comments

Comments
 (0)