Skip to content

Commit 685757b

Browse files
acrnogorjaviereguiluz
authored andcommitted
Update impersonating_user.rst
- request->getSession method call was missing brackets - fixed
1 parent 1646cb6 commit 685757b

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
@@ -324,7 +324,7 @@ you switch users, add an event subscriber on this event::
324324
{
325325
$request = $event->getRequest();
326326

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

0 commit comments

Comments
 (0)