From 995f3473829409d83c8bae96a1bfefda1f29f357 Mon Sep 17 00:00:00 2001 From: Denis Rendler Date: Wed, 24 Aug 2016 13:49:22 +0300 Subject: [PATCH 1/3] [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 --- controller.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller.rst b/controller.rst index 2e70d5be558..f12ebfc2348 100644 --- a/controller.rst +++ b/controller.rst @@ -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 `. * *line 16*: The controller creates and returns a ``Response`` object. @@ -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 :class:`Symfony\\Component\\HttpFoundation\\Request` class**:: use Symfony\Component\HttpFoundation\Request; From a327d2c974af8c3de95f03385066fa726459da61 Mon Sep 17 00:00:00 2001 From: Denis Rendler Date: Fri, 26 Aug 2016 11:18:05 +0300 Subject: [PATCH 2/3] [Controller] Fix nested inline markup - remove the nested mark-up referencing the HttpFoundation\Request class due to inline markup nesting not possible in the reStructured Text format --- controller.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller.rst b/controller.rst index f12ebfc2348..3a3a9c061b5 100644 --- a/controller.rst +++ b/controller.rst @@ -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 :class:`Symfony\\Component\\HttpFoundation\\Request` class**:: +**type-hint it with the `Request` class**:: use Symfony\Component\HttpFoundation\Request; From be85f67957a595386e8fc8c513bdee8312c363a2 Mon Sep 17 00:00:00 2001 From: Denis Rendler Date: Fri, 26 Aug 2016 11:54:24 +0300 Subject: [PATCH 3/3] [Controller Description] Remove backticks - remove backticks from Request class name --- controller.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller.rst b/controller.rst index 3a3a9c061b5..6adec626e0e 100644 --- a/controller.rst +++ b/controller.rst @@ -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;