Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5c11d98

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 containsthe bug (seehttps://symfony.com/roadmap for the list of maintained branches).If your pull request documents a NEW FEATURE, use the same Symfony branch wherethe feature was introduced (and `master` for features of unreleased versions).-->Commits-------685757b Update impersonating_user.rst
2 parents1646cb6 +685757b commit5c11d98

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)

[8]ページ先頭

©2009-2025 Movatter.jp