Skip to content

Commit efc3bb2

Browse files
committed
Merge branch '4.2' into 4.3
* 4.2: Update impersonating_user.rst
2 parents d34e229 + 5c11d98 commit efc3bb2

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
@@ -329,7 +329,7 @@ you switch users, add an event subscriber on this event::
329329
{
330330
$request = $event->getRequest();
331331

332-
if ($request->hasSession() && ($session = $request->getSession)) {
332+
if ($request->hasSession() && ($session = $request->getSession())) {
333333
$session->set(
334334
'_locale',
335335
// assuming your User has some getLocale() method

0 commit comments

Comments
 (0)