You are here

public function ImagemagickEventSubscriber::__construct in ImageMagick 8.2

Same name and namespace in other branches
  1. 8.3 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.

File

src/EventSubscriber/ImagemagickEventSubscriber.php, line 55

Class

ImagemagickEventSubscriber
Imagemagick's module Event Subscriber.

Namespace

Drupal\imagemagick\EventSubscriber

Code

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