mirror of
https://github.com/nextcloud/server.git
synced 2026-02-24 10:26:07 -05:00
25 lines
597 B
PHP
25 lines
597 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* 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 {
|
|
public function __construct(
|
|
private IClientService $clientService,
|
|
) {
|
|
}
|
|
|
|
public function getApiCollection(IInstance $instance, ICredentials $credentials) {
|
|
return new ApiCollection($instance, $credentials, $this->clientService);
|
|
}
|
|
}
|