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.
2 parents d18a88f + 65324f3 commit 008ab90Copy full SHA for 008ab90
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