We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca7e57e commit 9f3b147Copy full SHA for 9f3b147
session.rst
@@ -149,6 +149,10 @@ if you type-hint an argument with :class:`Symfony\\Component\\HttpFoundation\\Re
149
public function __construct(RequestStack $requestStack)
150
{
151
$this->requestStack = $requestStack;
152
+
153
+ // Accessing the session in the constructor is *NOT* reommended, since
154
+ // it might not be accessible yet or lead to unwanted side-effects
155
+ // $this->session = $requestStack->getSession();
156
}
157
158
public function someMethod()
0 commit comments