Mercurial > hg > cmmr2012-drupal-site
diff core/modules/contact/src/MailHandler.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
line wrap: on
line diff
--- a/core/modules/contact/src/MailHandler.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/contact/src/MailHandler.php Thu May 09 15:34:47 2019 +0100 @@ -2,7 +2,7 @@ namespace Drupal\contact; -use Drupal\Core\Entity\EntityManagerInterface; +use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Language\LanguageManagerInterface; use Drupal\Core\Mail\MailManagerInterface; use Drupal\Core\Session\AccountInterface; @@ -56,15 +56,15 @@ * A logger instance. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * String translation service. - * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager - * Entity manager service. + * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager + * The entity type manager. */ - public function __construct(MailManagerInterface $mail_manager, LanguageManagerInterface $language_manager, LoggerInterface $logger, TranslationInterface $string_translation, EntityManagerInterface $entity_manager) { + public function __construct(MailManagerInterface $mail_manager, LanguageManagerInterface $language_manager, LoggerInterface $logger, TranslationInterface $string_translation, EntityTypeManagerInterface $entity_type_manager) { $this->languageManager = $language_manager; $this->mailManager = $mail_manager; $this->logger = $logger; $this->stringTranslation = $string_translation; - $this->userStorage = $entity_manager->getStorage('user'); + $this->userStorage = $entity_type_manager->getStorage('user'); } /**