You are here

public function EmailAttachmentEvaluator::__construct in Easy Email 8

Same name and namespace in other branches
  1. 2.0.x src/Service/EmailAttachmentEvaluator.php \Drupal\easy_email\Service\EmailAttachmentEvaluator::__construct()

Constructs the EmailTokenEvaluator

Parameters

\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher:

\Drupal\Core\File\FileSystemInterface $fileSystem:

\Drupal\Core\ProxyClass\File\MimeType\MimeTypeGuesser $mimeTypeGuesser:

File

src/Service/EmailAttachmentEvaluator.php, line 39

Class

EmailAttachmentEvaluator

Namespace

Drupal\easy_email\Service

Code

public function __construct(EventDispatcherInterface $eventDispatcher, FileSystemInterface $fileSystem, MimeTypeGuesser $mimeTypeGuesser) {
  $this->fileSystem = $fileSystem;
  $this->mimeTypeGuesser = $mimeTypeGuesser;
  $this->eventDispatcher = $eventDispatcher;
}