@@ -120,7 +120,7 @@ Thanks to these two routes:
120
120
121
121
* If the user goes to ``/blog/* ``, the second route is matched and ``showAction() ``
122
122
is executed. Because the route path is ``/blog/{slug} ``, a ``$slug `` variable is
123
- passed to ``showAction `` matching that value. For example, if the user goes to
123
+ passed to ``showAction() `` matching that value. For example, if the user goes to
124
124
``/blog/yay-routing ``, then ``$slug `` will equal ``yay-routing ``.
125
125
126
126
Whenever you have a ``{placeholder} `` in your route path, that portion becomes a
@@ -502,11 +502,11 @@ The pattern has three parts, each separated by a colon:
502
502
503
503
For example, a ``_controller `` value of ``AppBundle:Blog:show `` means:
504
504
505
- ============= ================== ==============
505
+ ============= ================== ================
506
506
Bundle Controller Class Method Name
507
- ============= ================== ==============
508
- ``AppBundle `` ``BlogController `` ``showAction ``
509
- ============= ================== ==============
507
+ ============= ================== ================
508
+ ``AppBundle `` ``BlogController `` ``showAction() ``
509
+ ============= ================== ================
510
510
511
511
The controller might look like this::
512
512
@@ -524,7 +524,7 @@ The controller might look like this::
524
524
}
525
525
526
526
Notice that Symfony adds the string ``Controller `` to the class name (``Blog ``
527
- => ``BlogController ``) and ``Action `` to the method name (``show `` => ``showAction ``).
527
+ => ``BlogController ``) and ``Action `` to the method name (``show `` => ``showAction() ``).
528
528
529
529
You could also refer to this controller using its fully-qualified class name
530
530
and method: ``AppBundle\Controller\BlogController::showAction ``. But if you
0 commit comments