mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Fixings
- Rename "facStorage" to "storageManager" - Fix indentation - Fix tests
This commit is contained in:
parent
bfae6766bf
commit
016cfcd846
7 changed files with 45 additions and 46 deletions
|
@ -23,7 +23,7 @@ interface IStorage
|
|||
public function getOptions();
|
||||
public function saveOptions(array $data);
|
||||
public function __toString();
|
||||
public static function getName();
|
||||
public static function getName();
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -250,13 +250,13 @@ function samplestorage_install()
|
|||
// on addon install, we register our class with name "Sample Storage".
|
||||
// note: we use `::class` property, which returns full class name as string
|
||||
// this save us the problem of correctly escape backslashes in class name
|
||||
DI::facStorage()->register(SampleStorageBackend::class);
|
||||
DI::storageManager()->register(SampleStorageBackend::class);
|
||||
}
|
||||
|
||||
function samplestorage_unistall()
|
||||
{
|
||||
// when the plugin is uninstalled, we unregister the backend.
|
||||
DI::facStorage()->unregister(SampleStorageBackend::class);
|
||||
DI::storageManager()->unregister(SampleStorageBackend::class);
|
||||
}
|
||||
|
||||
function samplestorage_storage_instance(\Friendica\App $a, array $data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue