Skip to content

Commit 35075d7

Browse files
feature: mail provider backend
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
1 parent da93265 commit 35075d7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/AppInfo/Application.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,11 @@ public function register(IRegistrationContext $context): void {
163163
$context->registerSearchProvider(Provider::class);
164164
}
165165

166-
// register mail provider
166+
167167
// TODO: drop condition if nextcloud < 30 is not supported anymore
168-
if (interface_exists(MailProvider::class)) {
168+
// evaluate, if mail provider registration is possible
169+
if (method_exists($context, 'registerMailProvider')) {
170+
// register mail provider
169171
$context->registerMailProvider(MailProvider::class);
170172
}
171173

0 commit comments

Comments
 (0)