summaryrefslogtreecommitdiffstats
path: root/lib/Config
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2020-05-23 21:27:34 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2020-08-14 18:22:57 +0200
commit4ebc906fef787996497dc198e536e152e8be9bde (patch)
tree06fe6f4696c5b9af68f623a8a63231748daa7dbb /lib/Config
parent1619dd379d79482e58696eea6c4fea7a03f9e65f (diff)
Update to new BackgroudJob logic
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to 'lib/Config')
-rw-r--r--lib/Config/Config.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Config/Config.php b/lib/Config/Config.php
index dea1f5814..35d947871 100644
--- a/lib/Config/Config.php
+++ b/lib/Config/Config.php
@@ -32,6 +32,7 @@ class Config
private $loggerParams;
private $maxSize;
private $exploreUrl;
+ private $updateInterval;
public function __construct(
Folder $fileSystem,
@@ -48,6 +49,7 @@ class Config
$this->logger = $logger;
$this->exploreUrl = '';
$this->loggerParams = $LoggerParameters;
+ $this->updateInterval = 3600;
}
public function getAutoPurgeMinimumInterval()
@@ -94,6 +96,10 @@ class Config
return $this->exploreUrl;
}
+ public function getUpdateInterval()
+ {
+ return $this->updateInterval;
+ }
public function setAutoPurgeMinimumInterval($value)
{
@@ -135,6 +141,12 @@ class Config
$this->exploreUrl = $value;
}
+ public function setUpdateInterval($value)
+ {
+ $this->updateInterval = $value;
+ }
+
+
public function read($configPath, $createIfNotExists = false)
{