You are here

public function SessionHelper::__construct in Examples for Developers 8

Same name and namespace in other branches
  1. 3.x modules/stream_wrapper_example/src/SessionHelper.php \Drupal\stream_wrapper_example\SessionHelper::__construct()

Construct our helper object.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $request_stack: An object used to read data from the current HTTP request.

File

stream_wrapper_example/src/SessionHelper.php, line 37

Class

SessionHelper
Helper to manage file wrapper data stored in the session object.

Namespace

Drupal\stream_wrapper_example

Code

public function __construct(RequestStack $request_stack) {
  $this->requestStack = $request_stack;
  $this->storePath = '';
}