aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-08-26 10:21:26 +0200
committerJoas Schilling <coding@schilljs.com>2019-08-26 11:50:26 +0200
commitdb968cb1d415f1998be6df73b365ae5ca04686ad (patch)
tree74fd7d6894bd6380668e5be1bbc7f95cfc6ab69a /settings
parent9b89baca14d9fb1319cef1f50ef6464da39d0fcc (diff)
downloadnextcloud-server-db968cb1d415f1998be6df73b365ae5ca04686ad.tar.gz
nextcloud-server-db968cb1d415f1998be6df73b365ae5ca04686ad.zip
Cleanup the Settings class
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'settings')
-rw-r--r--settings/Settings/Admin/Server.php35
1 files changed, 3 insertions, 32 deletions
diff --git a/settings/Settings/Admin/Server.php b/settings/Settings/Admin/Server.php
index 1ebea8a4dcd..bceca06812c 100644
--- a/settings/Settings/Admin/Server.php
+++ b/settings/Settings/Admin/Server.php
@@ -26,48 +26,19 @@
namespace OC\Settings\Admin;
-use Doctrine\DBAL\Connection;
-use Doctrine\DBAL\DBALException;
-use Doctrine\DBAL\Platforms\SqlitePlatform;
-use OC\Lock\DBLockingProvider;
-use OC\Lock\NoopLockingProvider;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IConfig;
-use OCP\IDBConnection;
-use OCP\IL10N;
-use OCP\IRequest;
-use OCP\Lock\ILockingProvider;
use OCP\Settings\ISettings;
class Server implements ISettings {
- /** @var IDBConnection|Connection */
- private $db;
- /** @var IRequest */
- private $request;
/** @var IConfig */
private $config;
- /** @var ILockingProvider */
- private $lockingProvider;
- /** @var IL10N */
- private $l;
/**
- * @param IDBConnection $db
- * @param IRequest $request
* @param IConfig $config
- * @param ILockingProvider $lockingProvider
- * @param IL10N $l
*/
- public function __construct(IDBConnection $db,
- IRequest $request,
- IConfig $config,
- ILockingProvider $lockingProvider,
- IL10N $l) {
- $this->db = $db;
- $this->request = $request;
+ public function __construct(IConfig $config) {
$this->config = $config;
- $this->lockingProvider = $lockingProvider;
- $this->l = $l;
}
/**
@@ -89,7 +60,7 @@ class Server implements ISettings {
/**
* @return string the section ID, e.g. 'sharing'
*/
- public function getSection() {
+ public function getSection(): string {
return 'server';
}
@@ -100,7 +71,7 @@ class Server implements ISettings {
*
* E.g.: 70
*/
- public function getPriority() {
+ public function getPriority(): int {
return 0;
}
}