You are here

public function EmailSender::__construct in Commerce Email 8

Constructs a new EmailSender object.

Parameters

\Drupal\commerce\MailHandlerInterface $mail_handler: The mail handler.

\Drupal\Core\Utility\Token $token: The token service.

File

src/EmailSender.php, line 34

Class

EmailSender

Namespace

Drupal\commerce_email

Code

public function __construct(MailHandlerInterface $mail_handler, Token $token) {
  $this->mailHandler = $mail_handler;
  $this->token = $token;
}