You are here

public static function TinyPngImageStyleDownloadController::create in TinyPNG 8

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

Overrides ImageStyleDownloadController::create

File

src/Controller/TinyPngImageStyleDownloadController.php, line 50

Class

TinyPngImageStyleDownloadController
Class TinyPngImageStyleDownloadController.

Namespace

Drupal\tinypng\Controller

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('lock'), $container
    ->get('image.factory'), $container
    ->get('stream_wrapper_manager'), $container
    ->get('file_system'), $container
    ->get('logger.factory'), $container
    ->get('tinypng.compress'));
}