diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-19 18:13:54 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-19 18:13:54 +0100 |
commit | 794120c0f6cc933e89782262cbb71efd668f8cb8 (patch) | |
tree | fd4dd568cfdb9525dd11e094ff52e33880ab4943 /config | |
parent | b6a4a8a29b37c8b3f7124285ae21e32bf06a8f5c (diff) |
allow to change the explore service url
Diffstat (limited to 'config')
-rw-r--r-- | config/config.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config/config.php b/config/config.php index 9cdfa1b0c..0e1eec64b 100644 --- a/config/config.php +++ b/config/config.php @@ -30,6 +30,7 @@ class Config { private $logger; private $loggerParams; private $maxSize; + private $exploreUrl; public function __construct($fileSystem, ILogger $logger, $loggerParams) { @@ -45,6 +46,7 @@ class Config { $this->proxyPort = 8080; $this->proxyUser = ''; $this->proxyPassword = ''; + $this->exploreUrl = ''; $this->loggerParams = $loggerParams; } @@ -106,6 +108,11 @@ class Config { } + public function getExploreUrl() { + return $this->exploreUrl; + } + + public function setAutoPurgeMinimumInterval($value) { $this->autoPurgeMinimumInterval = $value; } @@ -156,6 +163,11 @@ class Config { } + public function setExploreUrl($value) { + $this->exploreUrl = $value; + } + + public function read($configPath, $createIfNotExists=false) { if($createIfNotExists && !$this->fileSystem->file_exists($configPath)) { @@ -202,6 +214,8 @@ class Config { $this->maxRedirects . "\n" . 'maxSize = ' . $this->maxSize . "\n" . + 'exploreUrl = ' . + $this->exploreUrl . "\n" . 'feedFetcherTimeout = ' . $this->feedFetcherTimeout . "\n" . 'useCronUpdates = ' . |