Skip to content

Commit b6f596a

Browse files
committed
minor #7018 Reorder arguments: $request as the first argument (bocharsky-bw)
This PR was merged into the 2.7 branch. Discussion ---------- 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. Commits ------- 31e5385 Reorder arguments: $request as the first argument
2 parents 1c870b2 + 31e5385 commit b6f596a

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)