mirror of
https://github.com/nextcloud/server.git
synced 2024-11-14 20:36:50 +00:00
dae7c159f7
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
25 lines
651 B
PHP
25 lines
651 B
PHP
<?php
|
|
/**
|
|
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OC\Remote\Api;
|
|
|
|
use OCP\Http\Client\IClientService;
|
|
use OCP\Remote\Api\IApiFactory;
|
|
use OCP\Remote\ICredentials;
|
|
use OCP\Remote\IInstance;
|
|
|
|
class ApiFactory implements IApiFactory {
|
|
/** @var IClientService */
|
|
private $clientService;
|
|
|
|
public function __construct(IClientService $clientService) {
|
|
$this->clientService = $clientService;
|
|
}
|
|
|
|
public function getApiCollection(IInstance $instance, ICredentials $credentials) {
|
|
return new ApiCollection($instance, $credentials, $this->clientService);
|
|
}
|
|
}
|