From c5df93259c32d7ac554131dda6b6cae963963f69 Mon Sep 17 00:00:00 2001 From: llewellynthomas Date: Thu, 26 Dec 2013 20:15:21 +0000 Subject: [PATCH] getRequest() is deprecated in version 2.4 removed $this->getRequest() and added it as a parameter to be passed to loginAction() method --- book/security.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/security.rst b/book/security.rst index e9b41a08aee..d73823f3f1b 100644 --- a/book/security.rst +++ b/book/security.rst @@ -416,13 +416,13 @@ Next, create the controller that will display the login form:: namespace Acme\SecurityBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; + use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Core\SecurityContext; class SecurityController extends Controller { - public function loginAction() + public function loginAction(Request $request) { - $request = $this->getRequest(); $session = $request->getSession(); // get the login error if there is one