Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SymfonyMailer.php

function SymfonyMailer::__construct

Symfony mailer constructor.

Parameters

\Psr\Log\LoggerInterface $logger: The logger service.

\Symfony\Component\Mailer\MailerInterface $mailer: The mailer service. Only specify an instance in unit tests, pass NULL in production.

File

core/lib/Drupal/Core/Mail/Plugin/Mail/SymfonyMailer.php, line 94

Class

SymfonyMailer
Defines an experimental mail backend, based on the Symfony mailer component.

Namespace

Drupal\Core\Mail\Plugin\Mail

Code

public function __construct(LoggerInterface $logger, ?MailerInterface $mailer = NULL) {
}
RSS feed
Powered by Drupal