Skip to content

Commit f9db2a5

Browse files
committed
Removed the Action suffix in controller methods
1 parent 5ce50d8 commit f9db2a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/form_login_setup.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ configuration (``login``):
9898
/**
9999
* @Route("/login", name="login")
100100
*/
101-
public function loginAction()
101+
public function login()
102102
{
103103
}
104104
}
@@ -143,7 +143,7 @@ Great! Next, add the logic to ``login()`` that displays the login form::
143143
// src/Controller/SecurityController.php
144144
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
145145

146-
public function loginAction(AuthenticationUtils $authenticationUtils)
146+
public function login(AuthenticationUtils $authenticationUtils)
147147
{
148148
// get the login error if there is one
149149
$error = $authenticationUtils->getLastAuthenticationError();

0 commit comments

Comments
 (0)