8000
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 7f17991 commit 471038cCopy full SHA for 471038c
session.rst
@@ -153,10 +153,10 @@ controllers if you type-hint an argument with
153
$this->requestStack->getSession()->set('attribute-name', 'attribute-value');
154
155
// gets an attribute by name
156
- $foo = $this->session->get('foo');
+ $foo = $this->requestStack->getSession()->get('foo');
157
158
// the second argument is the value returned when the attribute doesn't exist
159
- $filters = $this->session->get('filters', []);
+ $filters = $this->requestStack->getSession()->get('filters', []);
160
161
// ...
162
}
0 commit comments