8000 Remove useless $request · symfony/symfony-docs@f22988f · GitHub
[go: up one dir, main page]

Skip to content

Commit f22988f

Browse files
ismail1432javiereguiluz
authored andcommitted
Remove useless $request
AFAICS the Request class doesn't needs to be injected in the login action
1 parent 225ba41 commit f22988f

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)
0