Each storage backend can have options the admin can set in admin page.
To make the options possible, you need to implement the `Friendica\Model\Storage\IStorageConfiguration` interface.
-All methods in the interface mus be implemented:
+All methods in the interface must be implemented:
```php
namespace Friendica\Model\Storage\IStorageConfiguration;
DI::storageManager()->register(SampleStorageBackend::class);
}
-function webdav_storage_uninstall()
+function samplestorage_storage_uninstall()
{
DI::storageManager()->unregister(SampleStorageBackend::class);
}
-function webdav_storage_instance(App $a, array &$data)
+function samplestorage_storage_instance(App $a, array &$data)
{
$config = new SampleStorageBackendConfig(DI::l10n(), DI::config());
$data['storage'] = new SampleStorageBackendConfig($config->getFileName());
}
-function webdav_storage_config(App $a, array &$data)
+function samplestorage_storage_config(App $a, array &$data)
{
- $data['storage_config'] = new WebDavConfig(DI::l10n(), DI::config());
+ $data['storage_config'] = new SampleStorageBackendConfig(DI::l10n(), DI::config());
}
```