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 4b4385b commit 95fd311Copy full SHA for 95fd311
session.rst
@@ -146,13 +146,13 @@ controllers if you type-hint an argument with
146
public function someMethod()
147
{
148
// stores an attribute in the session for later reuse
149
- $session->set('attribute-name', 'attribute-value');
+ $this->session->set('attribute-name', 'attribute-value');
150
151
// gets an attribute by name
152
- $foo = $session->get('foo');
+ $foo = $this->session->get('foo');
153
154
// the second argument is the value returned when the attribute doesn't exist
155
- $filters = $session->get('filters', []);
+ $filters = $this->session->get('filters', []);
156
157
// ...
158
}
0 commit comments