Skip to content

Commit 7e69c93

Browse files
authored
Add empty parentheses to the method name
1 parent 463f9db commit 7e69c93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Thanks to these two routes:
120120

121121
* If the user goes to ``/blog/*``, the second route is matched and ``showAction()``
122122
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
124124
``/blog/yay-routing``, then ``$slug`` will equal ``yay-routing``.
125125

126126
Whenever you have a ``{placeholder}`` in your route path, that portion becomes a
@@ -505,7 +505,7 @@ For example, a ``_controller`` value of ``AppBundle:Blog:show`` means:
505505
============= ================== ==============
506506
Bundle Controller Class Method Name
507507
============= ================== ==============
508-
``AppBundle`` ``BlogController`` ``showAction``
508+
``AppBundle`` ``BlogController`` ``showAction()``
509509
============= ================== ==============
510510

511511
The controller might look like this::
@@ -524,7 +524,7 @@ The controller might look like this::
524524
}
525525

526526
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()``).
528528

529529
You could also refer to this controller using its fully-qualified class name
530530
and method: ``AppBundle\Controller\BlogController::showAction``. But if you

0 commit comments

Comments
 (0)