mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7921 from DorsetDigital/patch-2
Add missing use statement in Session documentation
This commit is contained in:
commit
2bef86833f
@ -30,6 +30,7 @@ Otherwise, if you're not in a controller, get the request as a service.
|
||||
|
||||
```php
|
||||
use SilverStripe\Control\HTTPRequest;
|
||||
use SilverStripe\Core\Injector\Injector;
|
||||
|
||||
$request = Injector::inst()->get(HTTPRequest::class);
|
||||
$session = $request->getSession();
|
||||
|
Loading…
Reference in New Issue
Block a user