You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
7
+
* SPDX-License-Identifier: AGPL-3.0-or-later
8
+
*/
9
+
10
+
namespaceOCA\DAV\SetupChecks;
11
+
12
+
useOCP\App\IAppManager;
13
+
useOCP\SetupCheck\ISetupCheck;
14
+
useOCP\SetupCheck\SetupResult;
15
+
16
+
class NeedNotificationsApp implements ISetupCheck {
17
+
publicfunction__construct(
18
+
privateIAppManager$appManager,
19
+
) {
20
+
}
21
+
22
+
publicfunctiongetName(): string {
23
+
return$this->l10n->t('Files reminder');
24
+
}
25
+
26
+
publicfunctiongetCategory(): string {
27
+
return'system';
28
+
}
29
+
30
+
publicfunctionrun(): SetupResult {
31
+
if ($this->appManager->isInstalled('notifications')) {
32
+
return SetupResult::success($this->l10n->t('This files_reminder can work properly.'));
33
+
} else {
34
+
return SetupResult::warning($this->l10n->t('The files_reminder app needs the notification app to work properly. You should either enable notifications or disable files_reminder.'));
0 commit comments