Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Add empty parentheses to method names#7016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -120,7 +120,7 @@ Thanks to these two routes: | ||
| * If the user goes to ``/blog/*``, the second route is matched and ``showAction()`` | ||
| is executed. Because the route path is ``/blog/{slug}``, a ``$slug`` variable is | ||
| passed to ``showAction()`` matching that value. For example, if the user goes to | ||
| ``/blog/yay-routing``, then ``$slug`` will equal ``yay-routing``. | ||
| 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: | ||
| For example, a ``_controller`` value of ``AppBundle:Blog:show`` means: | ||
| ============= ================== ================ | ||
| Bundle Controller Class Method Name | ||
| ============= ================== ================ | ||
| ``AppBundle`` ``BlogController`` ``showAction()`` | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. You now have to expand the table ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Ah, sorry, missed it. Expanded | ||
| ============= ================== ================ | ||
| The controller might look like this:: | ||
| @@ -524,7 +524,7 @@ The controller might look like this:: | ||
| } | ||
| Notice that Symfony adds the string ``Controller`` to the class name (``Blog`` | ||
| => ``BlogController``) and ``Action`` to the method name (``show`` => ``showAction()``). | ||
| You could also refer to this controller using its fully-qualified class name | ||
| and method: ``AppBundle\Controller\BlogController::showAction``. But if you | ||