fix constructor

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Bjoern Schiessle 2017-03-13 10:35:44 +01:00 committed by Roeland Jago Douma
parent 449011dae7
commit e2d7bffcda
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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();