diff options
Diffstat (limited to 'lib/private/Mail/Mailer.php')
-rw-r--r-- | lib/private/Mail/Mailer.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php index 57778e263d7..3ef77e6239c 100644 --- a/lib/private/Mail/Mailer.php +++ b/lib/private/Mail/Mailer.php @@ -41,6 +41,7 @@ use OCP\IConfig; use OCP\IL10N; use OCP\ILogger; use OCP\IURLGenerator; +use OCP\L10N\IFactory; use OCP\Mail\IAttachment; use OCP\Mail\IEMailTemplate; use OCP\Mail\IMailer; @@ -80,6 +81,8 @@ class Mailer implements IMailer { private $l10n; /** @var IEventDispatcher */ private $dispatcher; + /** @var IFactory */ + private $l10nFactory; /** * @param IConfig $config @@ -94,13 +97,15 @@ class Mailer implements IMailer { Defaults $defaults, IURLGenerator $urlGenerator, IL10N $l10n, - IEventDispatcher $dispatcher) { + IEventDispatcher $dispatcher, + IFactory $l10nFactory) { $this->config = $config; $this->logger = $logger; $this->defaults = $defaults; $this->urlGenerator = $urlGenerator; $this->l10n = $l10n; $this->dispatcher = $dispatcher; + $this->l10nFactory = $l10nFactory; } /** @@ -158,7 +163,7 @@ class Mailer implements IMailer { return new EMailTemplate( $this->defaults, $this->urlGenerator, - $this->l10n, + $this->l10nFactory, $emailId, $data ); |