public function ImagemagickFormatMapper::__construct in ImageMagick 8.2
Same name and namespace in other branches
- 8.3 src/ImagemagickFormatMapper.php \Drupal\imagemagick\ImagemagickFormatMapper::__construct()
- 8 src/ImagemagickFormatMapper.php \Drupal\imagemagick\ImagemagickFormatMapper::__construct()
Constructs an ImagemagickFormatMapper object.
Parameters
\Drupal\Core\Cache\CacheBackendInterface $cache_service: The cache service.
\Drupal\imagemagick\ImagemagickMimeTypeMapper $mime_type_mapper: [DEPRECATED] The MIME type mapping service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Config\TypedConfigManagerInterface $typed_config: The typed config service.
File
- src/
ImagemagickFormatMapper.php, line 69
Class
- ImagemagickFormatMapper
- Provides the ImageMagick format mapper.
Namespace
Drupal\imagemagickCode
public function __construct(CacheBackendInterface $cache_service, ImagemagickMimeTypeMapper $mime_type_mapper, ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typed_config) {
$this->cache = $cache_service;
$this->mimeTypeMapper = $mime_type_mapper;
$this->configFactory = $config_factory;
$this->typedConfig = $typed_config;
}