From 794120c0f6cc933e89782262cbb71efd668f8cb8 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 19 Nov 2014 18:13:54 +0100 Subject: allow to change the explore service url --- config/config.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'config') 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 = ' . -- cgit v1.2.3