From 65d8489ec150c290179f78adf21dbf52bc9b52cd Mon Sep 17 00:00:00 2001 From: Loulier Guillaume Date: Tue, 17 Apr 2018 11:44:18 +0200 Subject: [PATCH] (fix): JsonResponse call for response. --- security/json_login_setup.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/security/json_login_setup.rst b/security/json_login_setup.rst index 930cc0e35e9..663d0a61913 100644 --- a/security/json_login_setup.rst +++ b/security/json_login_setup.rst @@ -69,6 +69,7 @@ path: // src/AppBundle/Controller/SecurityController.php // ... + use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; @@ -79,6 +80,7 @@ path: */ public function loginAction(Request $request) { + return new JsonResponse(); } }