summaryrefslogtreecommitdiffstats
path: root/apps/lookup_server_connector/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-05-10 17:31:05 -0500
committerGitHub <noreply@github.com>2017-05-10 17:31:05 -0500
commit167013dbf9e7de63e702854a9e770f73fca016f5 (patch)
treea740faf531c6eb31daeaf221657c4d9aeb67e919 /apps/lookup_server_connector/lib
parent1c2ccd220611a3c269c8122dcab8a3a6251053ef (diff)
parent538d32fe8734f563f3116c473f770bd4277c925b (diff)
downloadnextcloud-server-167013dbf9e7de63e702854a9e770f73fca016f5.tar.gz
nextcloud-server-167013dbf9e7de63e702854a9e770f73fca016f5.zip
Merge pull request #4783 from nextcloud/lite-application-classes
Use automatic injection for appdata folders
Diffstat (limited to 'apps/lookup_server_connector/lib')
-rw-r--r--apps/lookup_server_connector/lib/UpdateLookupServer.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/lookup_server_connector/lib/UpdateLookupServer.php b/apps/lookup_server_connector/lib/UpdateLookupServer.php
index 3a7c2fa7236..ae8fcbd67ca 100644
--- a/apps/lookup_server_connector/lib/UpdateLookupServer.php
+++ b/apps/lookup_server_connector/lib/UpdateLookupServer.php
@@ -27,6 +27,7 @@ use OC\Security\IdentityProof\Signer;
use OCA\LookupServerConnector\BackgroundJobs\RetryJob;
use OCP\BackgroundJob\IJobList;
use OCP\Http\Client\IClientService;
+use OCP\IConfig;
use OCP\IUser;
/**
@@ -44,27 +45,26 @@ class UpdateLookupServer {
/** @var IJobList */
private $jobList;
/** @var string URL point to lookup server */
- private $lookupServer = 'https://lookup.nextcloud.com';
+ private $lookupServer;
/**
* @param AccountManager $accountManager
* @param IClientService $clientService
* @param Signer $signer
* @param IJobList $jobList
- * @param string $lookupServer if nothing is given we use the default lookup server
+ * @param IConfig $config
*/
public function __construct(AccountManager $accountManager,
IClientService $clientService,
Signer $signer,
IJobList $jobList,
- $lookupServer = '') {
+ IConfig $config) {
$this->accountManager = $accountManager;
$this->clientService = $clientService;
$this->signer = $signer;
$this->jobList = $jobList;
- if ($lookupServer !== '') {
- $this->lookupServer = $lookupServer;
- }
+
+ $this->lookupServer = $config->getSystemValue('lookup_server', 'https://lookup.nextcloud.com');
$this->lookupServer = rtrim($this->lookupServer, '/');
$this->lookupServer .= '/users';
}