You are here

public function ImagemagickExecManager::__construct in ImageMagick 8.3

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

Constructs an ImagemagickExecManager object.

Parameters

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

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

string $app_root: The app root.

\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.

\Drupal\imagemagick\ImagemagickFormatMapperInterface $format_mapper: The format mapper service.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

File

src/ImagemagickExecManager.php, line 97

Class

ImagemagickExecManager
Manage execution of ImageMagick/GraphicsMagick commands.

Namespace

Drupal\imagemagick

Code

public function __construct(LoggerInterface $logger, ConfigFactoryInterface $config_factory, string $app_root, AccountProxyInterface $current_user, ImagemagickFormatMapperInterface $format_mapper, MessengerInterface $messenger) {
  $this->logger = $logger;
  $this->configFactory = $config_factory;
  $this->appRoot = $app_root;
  $this->currentUser = $current_user;
  $this->formatMapper = $format_mapper;
  $this->messenger = $messenger;
  $this->isWindows = substr(PHP_OS, 0, 3) === 'WIN';
}