Skip to content

Commit

Permalink
minor #6913 [Controller Description] Fix typos and class link (rendle…
Browse files Browse the repository at this point in the history
…r-denis)

This PR was submitted for the 3.0 branch but it was merged into the 2.7 branch instead (closes #6913).

Discussion
----------

[Controller Description] Fix typos and class link

- fix typo in first code example from $name to $max
- add link to the Request class instead of just make the name bold

Commits
-------

a0bbfae [Controller Description] Remove backticks
74addb0 [Controller] Fix nested inline markup
e017723 [Controller Description] Fix typos and class link
  • Loading branch information
wouterj committed Aug 28, 2016
2 parents 22adaa0 + a0bbfae commit e3dc077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ This controller is pretty straightforward:

* *line 12*: Each action method in a controller class is suffixed with ``Action``
(again, this isn't *required*, but some shortcuts rely on this). This method
is allowed to have a ``$name`` argument thanks to the ``{name}``
is allowed to have a ``$max`` argument thanks to the ``{max}``
:doc:`wildcard in the route </routing>`.

* *line 16*: The controller creates and returns a ``Response`` object.
Expand Down Expand Up @@ -327,7 +327,7 @@ The Request object as a Controller Argument
What if you need to read query parameters, grab a request header or get access
to an uploaded file? All of that information is stored in Symfony's ``Request``
object. To get it in your controller, just add it as an argument and
**type-hint it with the ``Request`` class**::
**type-hint it with the Request class**::

use Symfony\Component\HttpFoundation\Request;

Expand Down

0 comments on commit e3dc077

Please sign in to comment.