You are here

public function DownloadController::__construct in Media Entity Download 8.2

Same name and namespace in other branches
  1. 8 src/Controller/DownloadController.php \Drupal\media_entity_download\Controller\DownloadController::__construct()

DownloadController constructor.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request object.

\Drupal\Core\File\FileSystemInterface $file_system: The file system service.

\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager.

File

src/Controller/DownloadController.php, line 53

Class

DownloadController
DownloadController class.

Namespace

Drupal\media_entity_download\Controller

Code

public function __construct(RequestStack $request_stack, FileSystemInterface $file_system, StreamWrapperManagerInterface $stream_wrapper_manager) {
  $this->requestStack = $request_stack;
  $this->fileSystem = $file_system;
  $this->streamWrapperManager = $stream_wrapper_manager;
}