function NotificationHandler::__construct

Same name and namespace in other branches
  1. 11.x core/modules/user/src/NotificationHandler.php \Drupal\user\NotificationHandler::__construct()

@phpstan-param \Closure(): \Psr\Log\LoggerInterface $logger @phpstan-param \Closure(): \Drupal\Core\Mail\MailManagerInterface $mailManager

File

core/modules/user/src/NotificationHandler.php, line 22

Class

NotificationHandler
Implements a service to dispatch user notification messages.

Namespace

Drupal\user

Code

public function __construct(protected readonly ConfigFactoryInterface $configFactory, protected readonly LanguageManagerInterface $languageManager, #[AutowireServiceClosure('logger.channel.user')] protected readonly \Closure $logger, #[AutowireServiceClosure('plugin.manager.mail')] protected readonly \Closure $mailManager) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.