protected function SessionHelper::getSession in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/stream_wrapper_example/src/SessionHelper.php \Drupal\stream_wrapper_example\SessionHelper::getSession()
Get a fresh session object.
Return value
\Symfony\Component\HttpFoundation\Session\SessionInterface A session object.
3 calls to SessionHelper::getSession()
- SessionHelper::cleanUpStore in stream_wrapper_example/
src/ SessionHelper.php - Zero out the store.
- SessionHelper::getStore in stream_wrapper_example/
src/ SessionHelper.php - Get the contents of the session filesystem.
- SessionHelper::setStore in stream_wrapper_example/
src/ SessionHelper.php - Set the contents of our session filesystem.
File
- stream_wrapper_example/
src/ SessionHelper.php, line 48
Class
- SessionHelper
- Helper to manage file wrapper data stored in the session object.
Namespace
Drupal\stream_wrapper_exampleCode
protected function getSession() {
return $this->requestStack
->getCurrentRequest()
->getSession();
}