Skip to content

Commit

Permalink
minor #7018 Reorder arguments: $request as the first argument (bochar…
Browse files Browse the repository at this point in the history
…sky-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
  • Loading branch information
wouterj committed Oct 6, 2016
2 parents 1c870b2 + 31e5385 commit b6f596a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b6f596a

Please sign in to comment.