Allow delegation of admin settings.

Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
This commit is contained in:
Claus-Justus Heine
2022-02-17 18:23:07 +01:00
parent 91e8cac761
commit ad513bda3e

View File

@@ -23,14 +23,14 @@ namespace OCA\UserSQL\Settings;
use OCA\UserSQL\Properties; use OCA\UserSQL\Properties;
use OCP\AppFramework\Http\TemplateResponse; use OCP\AppFramework\Http\TemplateResponse;
use OCP\Settings\ISettings; use OCP\Settings\IDelegatedSettings;
/** /**
* The administrator's settings page. * The administrator's settings page.
* *
* @author Marcin Łojewski <dev@mlojewski.me> * @author Marcin Łojewski <dev@mlojewski.me>
*/ */
class Admin implements ISettings class Admin implements IDelegatedSettings
{ {
/** /**
* @var string The application name. * @var string The application name.
@@ -76,4 +76,12 @@ class Admin implements ISettings
{ {
return 25; return 25;
} }
public function getName(): ?string {
return null; // Only one setting in this section
}
public function getAuthorizedAppConfig(): array {
return []; // Custom controller
}
} }