You are here

public function ImagemagickFormatMapper::__construct in ImageMagick 8

Same name and namespace in other branches
  1. 8.3 src/ImagemagickFormatMapper.php \Drupal\imagemagick\ImagemagickFormatMapper::__construct()
  2. 8.2 src/ImagemagickFormatMapper.php \Drupal\imagemagick\ImagemagickFormatMapper::__construct()

Constructs an ImagemagickFormatmapper object.

Parameters

\Drupal\Core\Cache\CacheBackendInterface $cache_service: The cache service.

\Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface $mime_type_mapper: The MIME type mapping service. @todo change if extension mapping service gets in, see #2311679

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Config\TypedConfigManagerInterface $typed_config: The typed config service.

File

src/ImagemagickFormatMapper.php, line 65

Class

ImagemagickFormatMapper
Provides the ImageMagick format mapper.

Namespace

Drupal\imagemagick

Code

public function __construct(CacheBackendInterface $cache_service, MimeTypeGuesserInterface $mime_type_mapper, ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typed_config) {
  $this->cache = $cache_service;

  // @todo change if extension mapping service gets in, see #2311679
  $this->mimeTypeMapper = $mime_type_mapper;
  $this->configFactory = $config_factory;
  $this->typedConfig = $typed_config;
}