From 685757b67b6cffaf1779c68e07edc105be21204d Mon Sep 17 00:00:00 2001 From: Ante Crnogorac Date: Tue, 11 Jun 2019 15:46:40 +0200 Subject: [PATCH] Update impersonating_user.rst - request->getSession method call was missing brackets - fixed --- security/impersonating_user.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/impersonating_user.rst b/security/impersonating_user.rst index 75cedc0328b..cbd7fd03239 100644 --- a/security/impersonating_user.rst +++ b/security/impersonating_user.rst @@ -324,7 +324,7 @@ you switch users, add an event subscriber on this event:: { $request = $event->getRequest(); - if ($request->hasSession() && ($session = $request->getSession)) { + if ($request->hasSession() && ($session = $request->getSession())) { $session->set( '_locale', // assuming your User has some getLocale() method