From 13c19fa9dacc88c1decb716cbf618f36bebacb55 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Tue, 4 Feb 2020 21:13:36 +0100 Subject: [PATCH] Add Logger --- src/Util/EMailer/NotifyMailBuilder.php | 5 +++-- src/Util/Emailer.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Util/EMailer/NotifyMailBuilder.php b/src/Util/EMailer/NotifyMailBuilder.php index d571e87422..b7d11369e5 100644 --- a/src/Util/EMailer/NotifyMailBuilder.php +++ b/src/Util/EMailer/NotifyMailBuilder.php @@ -9,6 +9,7 @@ use Friendica\Core\Config\IConfig; use Friendica\Core\L10n; use Friendica\Core\Renderer; use Friendica\Network\HTTPException\InternalServerErrorException; +use Psr\Log\LoggerInterface; /** * Builder for notification emails (notification, source, links, ...) @@ -50,9 +51,9 @@ class NotifyMailBuilder extends MailBuilder /** @var string The item link */ private $itemLink = ''; - public function __construct(L10n $l10n, BaseURL $baseUrl, IConfig $config, string $siteEmailAddress, string $siteName) + public function __construct(L10n $l10n, BaseURL $baseUrl, IConfig $config, LoggerInterface $logger, string $siteEmailAddress, string $siteName) { - parent::__construct($l10n, $baseUrl, $config); + parent::__construct($l10n, $baseUrl, $config, $logger); if ($this->config->get('config', 'admin_name')) { $this->siteAdmin = $l10n->t('%1$s, %2$s Administrator', $this->config->get('config', 'admin_name'), $siteName); diff --git a/src/Util/Emailer.php b/src/Util/Emailer.php index 0e45936014..a9da5346dd 100644 --- a/src/Util/Emailer.php +++ b/src/Util/Emailer.php @@ -100,7 +100,7 @@ class Emailer */ public function newNotifyMail() { - return new NotifyMailBuilder($this->l10n, $this->baseUrl, $this->config, + return new NotifyMailBuilder($this->l10n, $this->baseUrl, $this->config, $this->logger, $this->getSiteEmailAddress(), $this->getSiteEmailName()); } -- 2.39.5