public function FileDownloadController::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/src/FileDownloadController.php \Drupal\system\FileDownloadController::__construct()
FileDownloadController constructor.
Parameters
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $streamWrapperManager: The stream wrapper manager.
1 call to FileDownloadController::__construct()
- ImageStyleDownloadController::__construct in core/
modules/ image/ src/ Controller/ ImageStyleDownloadController.php - Constructs a ImageStyleDownloadController object.
1 method overrides FileDownloadController::__construct()
- ImageStyleDownloadController::__construct in core/
modules/ image/ src/ Controller/ ImageStyleDownloadController.php - Constructs a ImageStyleDownloadController object.
File
- core/
modules/ system/ src/ FileDownloadController.php, line 31
Class
- FileDownloadController
- System file controller.
Namespace
Drupal\systemCode
public function __construct(StreamWrapperManagerInterface $streamWrapperManager = NULL) {
if (!$streamWrapperManager) {
@trigger_error('Calling FileDownloadController::__construct() without the $streamWrapperManager argument is deprecated in drupal:8.8.0. The $streamWrapperManager argument will be required in drupal:9.0.0. See https://www.drupal.org/node/3035273', E_USER_DEPRECATED);
$streamWrapperManager = \Drupal::service('stream_wrapper_manager');
}
$this->streamWrapperManager = $streamWrapperManager;
}