aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federation/lib/Settings/Admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federation/lib/Settings/Admin.php')
-rw-r--r--apps/federation/lib/Settings/Admin.php25
1 files changed, 22 insertions, 3 deletions
diff --git a/apps/federation/lib/Settings/Admin.php b/apps/federation/lib/Settings/Admin.php
index c4efe983783..7d4e51a124c 100644
--- a/apps/federation/lib/Settings/Admin.php
+++ b/apps/federation/lib/Settings/Admin.php
@@ -24,15 +24,26 @@ namespace OCA\Federation\Settings;
use OCA\Federation\TrustedServers;
use OCP\AppFramework\Http\TemplateResponse;
-use OCP\Settings\ISettings;
+use OCP\IL10N;
+use OCP\Settings\IDelegatedSettings;
-class Admin implements ISettings {
+class Admin implements IDelegatedSettings {
/** @var TrustedServers */
private $trustedServers;
- public function __construct(TrustedServers $trustedServers) {
+ /** @var IL10N */
+ private $l;
+
+ /**
+ * Admin constructor.
+ *
+ * @param TrustedServers $trustedServers
+ * @param IL10N $l
+ */
+ public function __construct(TrustedServers $trustedServers, IL10N $l) {
$this->trustedServers = $trustedServers;
+ $this->l = $l;
}
/**
@@ -63,4 +74,12 @@ class Admin implements ISettings {
public function getPriority() {
return 30;
}
+
+ public function getName(): ?string {
+ return $this->l->t("Trusted servers");
+ }
+
+ public function getAuthorizedAppConfig(): array {
+ return []; // Handled by custom controller
+ }
}