forked from friendica/friendica-addons
Add Feedback :-)
This commit is contained in:
parent
fe296e5a73
commit
6f4e9a14e3
|
@ -7,7 +7,7 @@ use Friendica\Core\Storage\Capability\ICanWriteToStorage;
|
||||||
use Friendica\Core\Storage\Exception\ReferenceStorageException;
|
use Friendica\Core\Storage\Exception\ReferenceStorageException;
|
||||||
use Friendica\Core\Storage\Exception\StorageException;
|
use Friendica\Core\Storage\Exception\StorageException;
|
||||||
use Friendica\Network\HTTPClient\Client\HttpClientOptions;
|
use Friendica\Network\HTTPClient\Client\HttpClientOptions;
|
||||||
use Friendica\Network\HTTPClient\Capability\ICanRequestPerHttp;
|
use Friendica\Network\HTTPClient\Capability\ICanSendHttpRequests;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ class WebDav implements ICanWriteToStorage
|
||||||
/** @var string */
|
/** @var string */
|
||||||
private $url;
|
private $url;
|
||||||
|
|
||||||
/** @var ICanRequestPerHttp */
|
/** @var ICanSendHttpRequests */
|
||||||
private $client;
|
private $client;
|
||||||
|
|
||||||
/** @var LoggerInterface */
|
/** @var LoggerInterface */
|
||||||
|
@ -35,10 +35,10 @@ class WebDav implements ICanWriteToStorage
|
||||||
*
|
*
|
||||||
* @param string $url The full URL to the webdav endpoint (including the subdirectories)
|
* @param string $url The full URL to the webdav endpoint (including the subdirectories)
|
||||||
* @param array $authOptions The authentication options for the http calls ( ['username', 'password', 'auth_type'] )
|
* @param array $authOptions The authentication options for the http calls ( ['username', 'password', 'auth_type'] )
|
||||||
* @param ICanRequestPerHttp $client The http client for communicating with the WebDav endpoint
|
* @param ICanSendHttpRequests $client The http client for communicating with the WebDav endpoint
|
||||||
* @param LoggerInterface $logger The standard logging class
|
* @param LoggerInterface $logger The standard logging class
|
||||||
*/
|
*/
|
||||||
public function __construct(string $url, array $authOptions, ICanRequestPerHttp $client, LoggerInterface $logger)
|
public function __construct(string $url, array $authOptions, ICanSendHttpRequests $client, LoggerInterface $logger)
|
||||||
{
|
{
|
||||||
$this->client = $client;
|
$this->client = $client;
|
||||||
$this->logger = $logger;
|
$this->logger = $logger;
|
||||||
|
|
|
@ -6,7 +6,7 @@ use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
||||||
use Friendica\Core\Storage\Capability\ICanConfigureStorage;
|
use Friendica\Core\Storage\Capability\ICanConfigureStorage;
|
||||||
use Friendica\Network\HTTPClient\Client\HttpClientOptions;
|
use Friendica\Network\HTTPClient\Client\HttpClientOptions;
|
||||||
use Friendica\Network\HTTPClient\Capability\ICanRequestPerHttp;
|
use Friendica\Network\HTTPClient\Capability\ICanSendHttpRequests;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The WebDav Backend Storage configuration class
|
* The WebDav Backend Storage configuration class
|
||||||
|
@ -24,7 +24,7 @@ class WebDavConfig implements ICanConfigureStorage
|
||||||
/** @var string */
|
/** @var string */
|
||||||
private $url;
|
private $url;
|
||||||
|
|
||||||
/** @var \Friendica\Network\HTTPClient\Capability\ICanRequestPerHttp */
|
/** @var \Friendica\Network\HTTPClient\Capability\ICanSendHttpRequests */
|
||||||
private $client;
|
private $client;
|
||||||
|
|
||||||
/** @var array */
|
/** @var array */
|
||||||
|
@ -46,7 +46,7 @@ class WebDavConfig implements ICanConfigureStorage
|
||||||
return $this->authOptions;
|
return $this->authOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __construct(L10n $l10n, IManageConfigValues $config, ICanRequestPerHttp $client)
|
public function __construct(L10n $l10n, IManageConfigValues $config, ICanSendHttpRequests $client)
|
||||||
{
|
{
|
||||||
$this->l10n = $l10n;
|
$this->l10n = $l10n;
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
|
|
Loading…
Reference in a new issue