Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_retention.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Settings/Admin.php')
-rw-r--r--lib/Settings/Admin.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php
index cb7f50a..4e2e1aa 100644
--- a/lib/Settings/Admin.php
+++ b/lib/Settings/Admin.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright 2016 Roeland Jago Douma <roeland@famdouma.nl>
@@ -32,13 +33,12 @@ use OCP\Settings\ISettings;
use OCP\Util;
class Admin implements ISettings {
-
- protected IInitialState $initialStateService;
+ protected IInitialState $initialState;
protected IURLGenerator $url;
protected IConfig $config;
- public function __construct(IInitialState $initialStateService, IURLGenerator $url, IConfig $config) {
- $this->initialStateService = $initialStateService;
+ public function __construct(IInitialState $initialState, IURLGenerator $url, IConfig $config) {
+ $this->initialState = $initialState;
$this->url = $url;
$this->config = $config;
}
@@ -46,12 +46,12 @@ class Admin implements ISettings {
public function getForm(): TemplateResponse {
Util::addScript('files_retention', 'files_retention-main');
- $this->initialStateService->provideInitialState(
+ $this->initialState->provideInitialState(
'doc-url',
$this->url->linkToDocs('admin-files-retention')
);
- $this->initialStateService->provideInitialState(
+ $this->initialState->provideInitialState(
'notify_before',
$this->config->getAppValue(Application::APP_ID, 'notify_before', 'no') === 'yes'
);