Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7e69c93

Browse files
authored
Add empty parentheses to the method name
1 parent463f9db commit7e69c93

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)

[8]ページ先頭

©2009-2025 Movatter.jp