Add Logger
This commit is contained in:
parent
cb08912926
commit
13c19fa9da
2 changed files with 4 additions and 3 deletions
|
@ -9,6 +9,7 @@ use Friendica\Core\Config\IConfig;
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
||||||
use Friendica\Core\Renderer;
|
use Friendica\Core\Renderer;
|
||||||
use Friendica\Network\HTTPException\InternalServerErrorException;
|
use Friendica\Network\HTTPException\InternalServerErrorException;
|
||||||
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Builder for notification emails (notification, source, links, ...)
|
* Builder for notification emails (notification, source, links, ...)
|
||||||
|
@ -50,9 +51,9 @@ class NotifyMailBuilder extends MailBuilder
|
||||||
/** @var string The item link */
|
/** @var string The item link */
|
||||||
private $itemLink = '';
|
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')) {
|
if ($this->config->get('config', 'admin_name')) {
|
||||||
$this->siteAdmin = $l10n->t('%1$s, %2$s Administrator', $this->config->get('config', 'admin_name'), $siteName);
|
$this->siteAdmin = $l10n->t('%1$s, %2$s Administrator', $this->config->get('config', 'admin_name'), $siteName);
|
||||||
|
|
|
@ -100,7 +100,7 @@ class Emailer
|
||||||
*/
|
*/
|
||||||
public function newNotifyMail()
|
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());
|
$this->getSiteEmailAddress(), $this->getSiteEmailName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue