You are here

public function EmailSubscriber::__construct in Commerce Email 8

Constructs a new EmailSubscriber object.

Parameters

\Drupal\commerce_email\EmailSenderInterface $email_sender: The email sender.

File

src/EventSubscriber/EmailSubscriber.php, line 31

Class

EmailSubscriber
Subscribes to Symfony events and maps them to email events.

Namespace

Drupal\commerce_email\EventSubscriber

Code

public function __construct(EmailSenderInterface $email_sender) {
  $this->emailSender = $email_sender;
}