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

Skip to content

[Controller Description] Fix typos and class link #6913

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -316,7 +316,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