You are here

public function SessionHelper::__construct in Examples for Developers 3.x

Same name and namespace in other branches
  1. 8 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

modules/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 = '';
}