From 2b86eed3d56a7b45ac4b57e87dbb329f62ff6302 Mon Sep 17 00:00:00 2001 From: SebastianKrupinski Date: Thu, 14 Nov 2024 20:20:20 -0500 Subject: [PATCH] fixup! feat: mail provider settings Signed-off-by: SebastianKrupinski --- apps/dav/lib/CalDAV/Schedule/IMipPlugin.php | 5 +++-- apps/dav/lib/Server.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php index 73ccd18823311..8ed3cf4d56f71 100644 --- a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php +++ b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php @@ -44,7 +44,7 @@ */ class IMipPlugin extends SabreIMipPlugin { private IUserSession $userSession; - private IConfig $config; + private IAppConfig $config; private IMailer $mailer; private LoggerInterface $logger; private ITimeFactory $timeFactory; @@ -59,7 +59,8 @@ class IMipPlugin extends SabreIMipPlugin { private EventComparisonService $eventComparisonService; private IMailManager $mailManager; - public function __construct(IConfig $config, + public function __construct( + IAppConfig $config, IMailer $mailer, LoggerInterface $logger, ITimeFactory $timeFactory, diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php index 3490820d526dd..180dd78c4eb7b 100644 --- a/apps/dav/lib/Server.php +++ b/apps/dav/lib/Server.php @@ -290,7 +290,7 @@ public function __construct(IRequest $request, string $baseUri) { )); if (\OC::$server->getConfig()->getAppValue('dav', 'sendInvitations', 'yes') === 'yes') { $this->server->addPlugin(new IMipPlugin( - \OC::$server->get(\OCP\IConfig::class), + \OC::$server->get(\OCP\IAppConfig::class), \OC::$server->get(\OCP\Mail\IMailer::class), \OC::$server->get(LoggerInterface::class), \OC::$server->get(\OCP\AppFramework\Utility\ITimeFactory::class),