You are here

public function ImageStyleDownloadController::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/image/src/Controller/ImageStyleDownloadController.php \Drupal\image\Controller\ImageStyleDownloadController::__construct()

Constructs a ImageStyleDownloadController object.

Parameters

\Drupal\Core\Lock\LockBackendInterface $lock: The lock backend.

\Drupal\Core\Image\ImageFactory $image_factory: The image factory.

\Psr\Log\LoggerInterface $logger: A logger instance.

File

core/modules/image/src/Controller/ImageStyleDownloadController.php, line 59
Contains \Drupal\image\Controller\ImageStyleDownloadController.

Class

ImageStyleDownloadController
Defines a controller to serve image styles.

Namespace

Drupal\image\Controller

Code

public function __construct(LockBackendInterface $lock, ImageFactory $image_factory, LoggerInterface $logger) {
  $this->lock = $lock;
  $this->imageFactory = $image_factory;
  $this->logger = $logger;
}