X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2FAddonStorageBackend.md;h=f4773acb89b81376eb4c53984d36d65789d3c3b0;hb=6d0f6babe3387d16c768fa0f779ee65acde1b5d1;hp=19e956ce9e67967074c5bfc7991186ac4279f718;hpb=08d1dcf14c3c1db6baaa97ccc9074c14a5ef4964;p=friendica.git diff --git a/doc/AddonStorageBackend.md b/doc/AddonStorageBackend.md index 19e956ce9e..f4773acb89 100644 --- a/doc/AddonStorageBackend.md +++ b/doc/AddonStorageBackend.md @@ -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()); } ```