You are here

public function TinyPngImageStyleDownloadController::__construct in TinyPNG 8

This is not a good solution. Replace this if https://www.drupal.org/project/drupal/issues/2940016 is closed.

Overrides ImageStyleDownloadController::__construct

File

src/Controller/TinyPngImageStyleDownloadController.php, line 67

Class

TinyPngImageStyleDownloadController
Class TinyPngImageStyleDownloadController.

Namespace

Drupal\tinypng\Controller

Code

public function __construct(LockBackendInterface $lock, ImageFactory $image_factory, StreamWrapperManagerInterface $stream_wrapper_manager, FileSystemInterface $fs, LoggerChannelFactoryInterface $logger_factory, TinyPngInterface $tiny_png) {
  parent::__construct($lock, $image_factory, $stream_wrapper_manager, $fs);
  $this->serviceLogger = $logger_factory
    ->get('tinypng');
  $this->tinyPng = $tiny_png;
}