Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b6f596a

Browse filesBrowse 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
Copy full SHA for b6f596a

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎controller.rst

Copy file name to clipboardExpand all lines: controller.rst
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.