12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace OCA\Settings\Settings\Admin;
- use OCP\AppFramework\Http\TemplateResponse;
- use OCP\IConfig;
- use OCP\IL10N;
- use OCP\Settings\IDelegatedSettings;
- class Overview implements IDelegatedSettings {
-
- private $config;
-
- private $l;
- public function __construct(IConfig $config, IL10N $l) {
- $this->config = $config;
- $this->l = $l;
- }
-
- public function getForm() {
- $parameters = [
- 'checkForWorkingWellKnownSetup' => $this->config->getSystemValue('check_for_working_wellknown_setup', true),
- ];
- return new TemplateResponse('settings', 'settings/admin/overview', $parameters, '');
- }
-
- public function getSection() {
- return 'overview';
- }
-
- public function getPriority() {
- return 10;
- }
- public function getName(): ?string {
- return $this->l->t('Security & setup warnings');
- }
- public function getAuthorizedAppConfig(): array {
- return [];
- }
- }
|