You are here

public static function ImageAPIOptimizeProcessorBinaryBase::create in Image Optimize Binaries 8

File

src/ImageAPIOptimizeProcessorBinaryBase.php, line 44

Class

ImageAPIOptimizeProcessorBinaryBase
Base class for image optimizations that run local binaries.

Namespace

Drupal\imageapi_optimize_binaries

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('logger.factory')
    ->get('imageapi_optimize'), $container
    ->get('image.factory'), $container
    ->get('file_system'), $container
    ->get('imageapi_optimize_binaries.shell_operations'));
}