You are here

public function ImageStyleDownloadController::__construct in WebP 8

Constructs a ImageStyleDownloadController object.

Parameters

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

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

\Drupal\webp\Webp $webp: WebP driver.

\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface|null $stream_wrapper_manager: The stream wrapper manager.

Overrides FileDownloadController::__construct

File

src/Controller/ImageStyleDownloadController.php, line 65

Class

ImageStyleDownloadController
Defines a controller to serve image styles.

Namespace

Drupal\webp\Controller

Code

public function __construct(LockBackendInterface $lock, ImageFactory $image_factory, Webp $webp, StreamWrapperManagerInterface $stream_wrapper_manager = NULL) {
  parent::__construct($stream_wrapper_manager);
  $this->lock = $lock;
  $this->imageFactory = $image_factory;
  $this->logger = $this
    ->getLogger('image');
  $this->webp = $webp;
}