You are here

public function HTMLMailMime::__construct in HTML Mail 8

Same name and namespace in other branches
  1. 8.3 src/Utility/HtmlMailMime.php \Drupal\htmlmail\Utility\HtmlMailMime::__construct()

HTMLMailMime constructor.

Parameters

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger: The logger service.

\Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface $mimeTypeGuesser: The mime type service.

\Drupal\Core\File\FileSystemInterface $fileSystem: The filesystem service.

array $params: The params.

File

src/Utility/HTMLMailMime.php, line 129
Provides the MailMIME class for creating MIME-formatted email messages.

Class

HTMLMailMime
Class HTMLMailMime.

Namespace

Drupal\htmlmail\Utility

Code

public function __construct(LoggerChannelFactoryInterface $logger, MimeTypeGuesserInterface $mimeTypeGuesser, FileSystemInterface $fileSystem, array $params = []) {
  self::$logger = $logger;
  self::$mimeTypeGuesser = $mimeTypeGuesser;
  self::$fileSystem = $fileSystem;
  parent::__construct($params);
}