function FileDownloadController::__construct

Same name in other branches
  1. 9 core/modules/system/src/FileDownloadController.php \Drupal\system\FileDownloadController::__construct()
  2. 8.9.x core/modules/system/src/FileDownloadController.php \Drupal\system\FileDownloadController::__construct()
  3. 10 core/modules/system/src/FileDownloadController.php \Drupal\system\FileDownloadController::__construct()

FileDownloadController constructor.

Parameters

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

2 calls to FileDownloadController::__construct()
AssetControllerBase::__construct in core/modules/system/src/Controller/AssetControllerBase.php
Constructs an object derived from AssetControllerBase.
ImageStyleDownloadController::__construct in core/modules/image/src/Controller/ImageStyleDownloadController.php
Constructs an ImageStyleDownloadController object.
2 methods override FileDownloadController::__construct()
AssetControllerBase::__construct in core/modules/system/src/Controller/AssetControllerBase.php
Constructs an object derived from AssetControllerBase.
ImageStyleDownloadController::__construct in core/modules/image/src/Controller/ImageStyleDownloadController.php
Constructs an ImageStyleDownloadController object.

File

core/modules/system/src/FileDownloadController.php, line 30

Class

FileDownloadController
System file controller.

Namespace

Drupal\system

Code

public function __construct(StreamWrapperManagerInterface $streamWrapperManager) {
    $this->streamWrapperManager = $streamWrapperManager;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.