8000 Rewording · symfony/symfony-docs@5a94330 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5a94330

Browse files
Rewording
1 parent 1208aba commit 5a94330

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ if you type-hint an argument with :class:`Symfony\\Component\\HttpFoundation\\Re
150150
{
151151
$this->requestStack = $requestStack;
152152
153-
// This does *not* work, since you cannot access the session inside a constructor
153+
// Accessing the session in the constructor is *not* reommended, since it might lead to unwanted side-effects
154154
// $this->session = $requestStack->getSession();
155155
}
156156

0 commit comments

Comments
 (0)
0