]> git.mxchange.org Git - friendica.git/blobdiff - doc/AddonStorageBackend.md
Mandatory index added
[friendica.git] / doc / AddonStorageBackend.md
index 19e956ce9e67967074c5bfc7991186ac4279f718..f4773acb89b81376eb4c53984d36d65789d3c3b0 100644 (file)
@@ -38,7 +38,7 @@ interface IWritableStorage
 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;
@@ -336,20 +336,20 @@ function samplestorage_install()
        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());
 }
 
 ```