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

Skip to content

Commit e3dc077

Browse files
committed
minor #6913 [Controller Description] Fix typos and class link (rendler-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
2 parents 22adaa0 + a0bbfae commit e3dc077

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 Request class**::
331331

332332
use Symfony\Component\HttpFoundation\Request;
333333

0 commit comments

Comments
 (0)