public function TinyPngImageHandler::__construct in TinyPNG 8
TinyPngImageHandler constructor.
Parameters
\Drupal\tinypng\TinyPngInterface $tiny_png: TinyPng service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory.
\Drupal\Core\Image\ImageFactory $image_factory: Image factory.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_channel_factory: Logger channel factory.
File
- src/
TinyPngImageHandler.php, line 83
Class
- TinyPngImageHandler
- Class TinyPngImageHandler.
Namespace
Drupal\tinypngCode
public function __construct(TinyPngInterface $tiny_png, ConfigFactoryInterface $config_factory, ImageFactory $image_factory, LoggerChannelFactoryInterface $logger_channel_factory) {
$this->tinyPng = $tiny_png;
$this->config = $config_factory
->get('tinypng.settings');
$this->imageFactory = $image_factory;
$this->logger = $logger_channel_factory
->get('tinypng');
}