namespace Friendica\Addon\webdav_storage\src;
use Exception;
-use Friendica\Model\Storage\IWritableStorage;
-use Friendica\Model\Storage\ReferenceStorageException;
-use Friendica\Model\Storage\StorageException;
+use Friendica\Core\Storage\Capability\ICanWriteToStorage;
+use Friendica\Core\Storage\Exception\ReferenceStorageException;
+use Friendica\Core\Storage\Exception\StorageException;
use Friendica\Network\HTTPClientOptions;
use Friendica\Network\IHTTPClient;
use Friendica\Util\Strings;
/**
* A WebDav Backend Storage class
*/
-class WebDav implements IWritableStorage
+class WebDav implements ICanWriteToStorage
{
const NAME = 'WebDav';
/**
* {@inheritDoc}
*/
- public function __toString()
+ public function __toString(): string
{
return self::getName();
}
use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Core\L10n;
-use Friendica\Model\Storage\IStorageConfiguration;
+use Friendica\Core\Storage\Capability\ICanConfigureStorage;
use Friendica\Network\HTTPClientOptions;
use Friendica\Network\IHTTPClient;
/**
* The WebDav Backend Storage configuration class
*/
-class WebDavConfig implements IStorageConfiguration
+class WebDavConfig implements ICanConfigureStorage
{
const NAME = 'WebDav';
use Friendica\Addon\webdav_storage\src\WebDav;
use Friendica\DI;
use Friendica\Factory\HTTPClientFactory;
-use Friendica\Test\src\Model\Storage\StorageTest;
+use Friendica\Test\src\Core\Storage\StorageTest;
use Friendica\Util\Logger\VoidLogger;
/// @todo remove when constant is moved to a class constant