You are here

public function ImagemagickEventSubscriber::__construct in ImageMagick 8.3

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

Constructs an ImagemagickEventSubscriber object.

Parameters

\Psr\Log\LoggerInterface $logger: A logger instance.

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

\Drupal\Core\File\FileSystemInterface $file_system: The file system service.

\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager service.

\Drupal\file_mdm\FileMetadataManagerInterface $file_metadata_manager: The file metadata manager service.

File

src/EventSubscriber/ImagemagickEventSubscriber.php, line 77

Class

ImagemagickEventSubscriber
Imagemagick's module Event Subscriber.

Namespace

Drupal\imagemagick\EventSubscriber

Code

public function __construct(LoggerInterface $logger, ConfigFactoryInterface $config_factory, FileSystemInterface $file_system, StreamWrapperManagerInterface $stream_wrapper_manager, FileMetadataManagerInterface $file_metadata_manager) {
  $this->logger = $logger;
  $this->configFactory = $config_factory;
  $this->imagemagickSettings = $this->configFactory
    ->get('imagemagick.settings');
  $this->fileSystem = $file_system;
  $this->streamWrapperManager = $stream_wrapper_manager;
  $this->fileMetadataManager = $file_metadata_manager;
}