summaryrefslogtreecommitdiffstats
path: root/lib/Config
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-10-02 19:41:40 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2020-10-03 14:01:36 +0200
commit167dc70238cc4c82e46714fe55a516d48c0d6c76 (patch)
treec1222956d8bab43aa79bfc6fc018ad1891215dd5 /lib/Config
parent11ed50074dd64e5d532cf310a150a77f519a4a0e (diff)
Fix various 15.0 bugs
Issue #821,#820,#819 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Config')
-rw-r--r--lib/Config/LegacyConfig.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/Config/LegacyConfig.php b/lib/Config/LegacyConfig.php
index 370638843..f011a0e4a 100644
--- a/lib/Config/LegacyConfig.php
+++ b/lib/Config/LegacyConfig.php
@@ -22,7 +22,9 @@ use Psr\Log\LoggerInterface;
class LegacyConfig
{
+ private $logger;
private $fileSystem;
+
public $autoPurgeMinimumInterval; // seconds, used to define how
// long deleted folders and feeds
// should still be kept for an
@@ -31,8 +33,6 @@ class LegacyConfig
public $maxRedirects; // seconds
public $feedFetcherTimeout; // seconds
public $useCronUpdates; // turn off updates run by the cron
- public $logger;
- public $loggerParams;
public $maxSize;
public $exploreUrl;
public $updateInterval;
@@ -42,15 +42,15 @@ class LegacyConfig
LoggerInterface $logger
) {
$this->fileSystem = $fileSystem;
+ $this->logger = $logger;
+
$this->autoPurgeMinimumInterval = 60;
$this->autoPurgeCount = 200;
$this->maxRedirects = 10;
$this->maxSize = 100 * 1024 * 1024; // 100Mb
$this->feedFetcherTimeout = 60;
$this->useCronUpdates = true;
- $this->logger = $logger;
$this->exploreUrl = '';
- $this->loggerParams = ['app' => Application::NAME];
$this->updateInterval = 3600;
}
@@ -63,10 +63,7 @@ class LegacyConfig
$configValues = parse_ini_string($content);
if ($configValues === false || count($configValues) === 0) {
- $this->logger->warning(
- 'Configuration invalid. Ignoring values.',
- $this->loggerParams
- );
+ $this->logger->warning('Configuration invalid. Ignoring values.');
} else {
foreach ($configValues as $key => $value) {
if (property_exists($this, $key)) {