Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e017723

Browse files
rendler-deniswouterj
authored andcommitted
[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
1 parent 22adaa0 commit e017723

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controller.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ This controller is pretty straightforward:
9393

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

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

332332
use Symfony\Component\HttpFoundation\Request;
333333

0 commit comments

Comments
 (0)