You are here

public function ImagemagickExecManager::__construct in ImageMagick 8.2

Same name and namespace in other branches
  1. 8.3 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\Extension\ModuleHandlerInterface $module_handler: The module handler service.

File

src/ImagemagickExecManager.php, line 98

Class

ImagemagickExecManager
Manage execution of ImageMagick/GraphicsMagick commands.

Namespace

Drupal\imagemagick

Code

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