function ImageStyleDownloadController::__construct
Same name and namespace in other branches
- 11.x core/modules/image/src/Controller/ImageStyleDownloadController.php \Drupal\image\Controller\ImageStyleDownloadController::__construct()
- 10 core/modules/image/src/Controller/ImageStyleDownloadController.php \Drupal\image\Controller\ImageStyleDownloadController::__construct()
- 9 core/modules/image/src/Controller/ImageStyleDownloadController.php \Drupal\image\Controller\ImageStyleDownloadController::__construct()
- 8.9.x core/modules/image/src/Controller/ImageStyleDownloadController.php \Drupal\image\Controller\ImageStyleDownloadController::__construct()
Constructs an ImageStyleDownloadController object.
Parameters
\Drupal\Core\Lock\LockBackendInterface $lock: The lock backend.
\Drupal\Core\Image\ImageFactory $imageFactory: The image factory.
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager.
\Drupal\Core\File\FileSystemInterface $fileSystem: The system service.
Overrides FileDownloadController::__construct
File
-
core/
modules/ image/ src/ Controller/ ImageStyleDownloadController.php, line 46
Class
- ImageStyleDownloadController
- Defines a controller to serve image styles.
Namespace
Drupal\image\ControllerCode
public function __construct(#[Autowire(service: 'lock')] protected LockBackendInterface $lock, protected ImageFactory $imageFactory, StreamWrapperManagerInterface $stream_wrapper_manager, protected FileSystemInterface $fileSystem) {
parent::__construct($stream_wrapper_manager);
$this->logger = $this->getLogger('image');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.