You are here

public function EmailAttachmentEvaluator::__construct in Easy Email 2.0.x

Same name and namespace in other branches
  1. 8 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;
}