We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dfdbf0 commit 8c080f4Copy full SHA for 8c080f4
security.rst
@@ -1054,7 +1054,8 @@ token (or whatever you need to return) and return the JSON response:
1054
1055
class ApiLoginController extends AbstractController
1056
{
1057
- #[Route('/api/login', name: 'api_login', methods: ['POST'])]
+ - #[Route('/api/login', name: 'api_login')]
1058
+ + #[Route('/api/login', name: 'api_login', methods: ['POST'])]
1059
- public function index(): Response
1060
+ public function index(#[CurrentUser] ?User $user): Response
1061
0 commit comments