Skip to content

Commit 5c11d98

Browse files
committed
minor #11723 Update impersonating_user.rst (acrnogor)
This PR was submitted for the 4.3 branch but it was merged into the 4.2 branch instead (closes #11723). Discussion ---------- Update impersonating_user.rst - request->getSession method call was missing brackets - fixed <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 685757b Update impersonating_user.rst
2 parents 1646cb6 + 685757b commit 5c11d98

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)