From 31e538580a95e3fc72ae16966f3e2c0a2f35c335 Mon Sep 17 00:00:00 2001 From: Victor Bocharsky Date: Fri, 30 Sep 2016 10:38:01 +0300 Subject: [PATCH] Reorder arguments: $request as the first argument The `Request` argument should be the first one due to it can't be optional, but other arguments can --- controller.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller.rst b/controller.rst index 1c986fd681e..89242365c76 100644 --- a/controller.rst +++ b/controller.rst @@ -331,7 +331,7 @@ object. To get it in your controller, just add it as an argument and use Symfony\Component\HttpFoundation\Request; - public function indexAction($firstName, $lastName, Request $request) + public function indexAction(Request $request, $firstName, $lastName) { $page = $request->query->get('page', 1);