]> git.mxchange.org Git - friendica-addons.git/commitdiff
Add Feedback :-)
authorPhilipp <admin@philipp.info>
Fri, 29 Oct 2021 06:03:58 +0000 (08:03 +0200)
committerPhilipp <admin@philipp.info>
Fri, 29 Oct 2021 06:03:58 +0000 (08:03 +0200)
webdav_storage/src/WebDav.php
webdav_storage/src/WebDavConfig.php

index a9fdacea4526237ff2af17d6e44ab4f8e79df16d..de9fc47690baa16d24716f29d33774bbef72ae79 100644 (file)
@@ -7,7 +7,7 @@ use Friendica\Core\Storage\Capability\ICanWriteToStorage;
 use Friendica\Core\Storage\Exception\ReferenceStorageException;
 use Friendica\Core\Storage\Exception\StorageException;
 use Friendica\Network\HTTPClient\Client\HttpClientOptions;
-use Friendica\Network\HTTPClient\Capability\ICanRequestPerHttp;
+use Friendica\Network\HTTPClient\Capability\ICanSendHttpRequests;
 use Friendica\Util\Strings;
 use Psr\Log\LoggerInterface;
 
@@ -21,7 +21,7 @@ class WebDav implements ICanWriteToStorage
        /** @var string */
        private $url;
 
-       /** @var ICanRequestPerHttp */
+       /** @var ICanSendHttpRequests */
        private $client;
 
        /** @var LoggerInterface */
@@ -33,12 +33,12 @@ class WebDav implements ICanWriteToStorage
        /**
         * WebDav constructor
         *
-        * @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 ICanRequestPerHttp $client      The http client for communicating with the WebDav endpoint
-        * @param LoggerInterface    $logger      The standard logging class
+        * @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 ICanSendHttpRequests $client      The http client for communicating with the WebDav endpoint
+        * @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->logger = $logger;
index fd2c247bd7f71798f2a781d73efe414ad1a8dcf5..2236e97ab36de191419d2f2ad694ee0a261f58a1 100644 (file)
@@ -6,7 +6,7 @@ use Friendica\Core\Config\Capability\IManageConfigValues;
 use Friendica\Core\L10n;
 use Friendica\Core\Storage\Capability\ICanConfigureStorage;
 use Friendica\Network\HTTPClient\Client\HttpClientOptions;
-use Friendica\Network\HTTPClient\Capability\ICanRequestPerHttp;
+use Friendica\Network\HTTPClient\Capability\ICanSendHttpRequests;
 
 /**
  * The WebDav Backend Storage configuration class
@@ -24,7 +24,7 @@ class WebDavConfig implements ICanConfigureStorage
        /** @var string */
        private $url;
 
-       /** @var \Friendica\Network\HTTPClient\Capability\ICanRequestPerHttp */
+       /** @var \Friendica\Network\HTTPClient\Capability\ICanSendHttpRequests */
        private $client;
 
        /** @var array */
@@ -46,7 +46,7 @@ class WebDavConfig implements ICanConfigureStorage
                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->config = $config;