Skip to content

Commit 31e5385

Browse files
authored
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
1 parent 50c8385 commit 31e5385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ object. To get it in your controller, just add it as an argument and
331331

332332
use Symfony\Component\HttpFoundation\Request;
333333

334-
public function indexAction($firstName, $lastName, Request $request)
334+
public function indexAction(Request $request, $firstName, $lastName)
335335
{
336336
$page = $request->query->get('page', 1);
337337

0 commit comments

Comments
 (0)