Skip to content

Commit 391760c

Browse files
committed
Merge branch '4.4'
* 4.4: Update impersonating_user.rst
2 parents 238b9e1 + 8a39c81 commit 391760c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/impersonating_user.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ you switch users, add an event subscriber on this event::
325325
{
326326
$request = $event->getRequest();
327327

328-
if ($request->hasSession() && ($session = $request->getSession)) {
328+
if ($request->hasSession() && ($session = $request->getSession())) {
329329
$session->set(
330330
'_locale',
331331
// assuming your User has some getLocale() method

0 commit comments

Comments
 (0)