summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-03-13 10:35:44 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-04-11 15:04:01 +0200
commite2d7bffcdad5fa7f67728f419bcb27955a5e3c1a (patch)
tree5479f3273a84cd6a144b9ff1fc67f6def89288a4
parent449011dae7ea0ec7eb8d6c78e89709982020e709 (diff)
downloadnextcloud-server-e2d7bffcdad5fa7f67728f419bcb27955a5e3c1a.tar.gz
nextcloud-server-e2d7bffcdad5fa7f67728f419bcb27955a5e3c1a.zip
fix constructor
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
-rw-r--r--apps/federation/lib/BackgroundJob/GetSharedSecret.php2
-rw-r--r--apps/federation/lib/BackgroundJob/RequestSharedSecret.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/federation/lib/BackgroundJob/GetSharedSecret.php b/apps/federation/lib/BackgroundJob/GetSharedSecret.php
index 8d115ddc510..82622978908 100644
--- a/apps/federation/lib/BackgroundJob/GetSharedSecret.php
+++ b/apps/federation/lib/BackgroundJob/GetSharedSecret.php
@@ -94,7 +94,7 @@ class GetSharedSecret extends Job{
TrustedServers $trustedServers = null,
ILogger $logger = null,
DbHandler $dbHandler = null,
- IDiscoveryService $ocsDiscoveryService
+ IDiscoveryService $ocsDiscoveryService = null
) {
$this->logger = $logger ? $logger : \OC::$server->getLogger();
$this->httpClient = $httpClient ? $httpClient : \OC::$server->getHTTPClientService()->newClient();
diff --git a/apps/federation/lib/BackgroundJob/RequestSharedSecret.php b/apps/federation/lib/BackgroundJob/RequestSharedSecret.php
index ce9b487f8a8..6687b080bb0 100644
--- a/apps/federation/lib/BackgroundJob/RequestSharedSecret.php
+++ b/apps/federation/lib/BackgroundJob/RequestSharedSecret.php
@@ -92,7 +92,7 @@ class RequestSharedSecret extends Job {
IJobList $jobList = null,
TrustedServers $trustedServers = null,
DbHandler $dbHandler = null,
- IDiscoveryService $ocsDiscoveryService
+ IDiscoveryService $ocsDiscoveryService = null
) {
$this->httpClient = $httpClient ? $httpClient : \OC::$server->getHTTPClientService()->newClient();
$this->jobList = $jobList ? $jobList : \OC::$server->getJobList();