Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitf22988f

Browse files
ismail1432javiereguiluz
authored andcommitted
Remove useless $request
AFAICS the Request class doesn't needs to be injected in the login action
1 parent225ba41 commitf22988f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎security/form_login_setup.rst‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,14 @@ configuration (``login``):
9191
// src/AppBundle/Controller/SecurityController.php
9292
9393
// ...
94-
use Symfony\Component\HttpFoundation\Request;
9594
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
9695
9796
class SecurityController extends Controller
9897
{
9998
/**
10099
* @Route("/login", name="login")
101100
*/
102-
public function loginAction(Request $request)
101+
public function loginAction()
103102
{
104103
}
105104
}
@@ -142,7 +141,7 @@ Great! Next, add the logic to ``loginAction()`` that displays the login form::
142141

143142
// src/AppBundle/Controller/SecurityController.php
144143

145-
public function loginAction(Request $request)
144+
public function loginAction()
146145
{
147146
$authenticationUtils = $this->get('security.authentication_utils');
148147

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp