You are here

public function Notify::__construct in Automatic Updates 8

EmailNotify constructor.

Parameters

\Drupal\Core\Mail\MailManagerInterface $mail_manager: The mail manager.

\Drupal\automatic_updates\Services\AutomaticUpdatesPsaInterface $automatic_updates_psa: The automatic updates service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\State\StateInterface $state: The state service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

File

src/Services/Notify.php, line 97

Class

Notify
Class EmailNotify.

Namespace

Drupal\automatic_updates\Services

Code

public function __construct(MailManagerInterface $mail_manager, AutomaticUpdatesPsaInterface $automatic_updates_psa, ConfigFactoryInterface $config_factory, LanguageManagerInterface $language_manager, StateInterface $state, TimeInterface $time, EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
  $this->mailManager = $mail_manager;
  $this->automaticUpdatesPsa = $automatic_updates_psa;
  $this->configFactory = $config_factory;
  $this->languageManager = $language_manager;
  $this->state = $state;
  $this->time = $time;
  $this->entityTypeManager = $entity_type_manager;
  $this->stringTranslation = $string_translation;
}