function FileDownloadController::create

Same name in other branches
  1. 8.9.x core/modules/system/src/FileDownloadController.php \Drupal\system\FileDownloadController::create()

Overrides ControllerBase::create

1 call to FileDownloadController::create()
ConfigController::create in core/modules/config/src/Controller/ConfigController.php
Instantiates a new instance of this class.
1 method overrides FileDownloadController::create()
ImageStyleDownloadController::create in core/modules/image/src/Controller/ImageStyleDownloadController.php
Instantiates a new instance of this class.

File

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

Class

FileDownloadController
System file controller.

Namespace

Drupal\system

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('stream_wrapper_manager'));
}

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