mirror of
https://github.com/friendica/friendica
synced 2025-04-25 23:10:12 +00:00
Restructure Storage to new paradigm
This commit is contained in:
parent
24f8ee8e67
commit
2ab0d06996
29 changed files with 229 additions and 199 deletions
|
@ -22,14 +22,14 @@
|
|||
namespace Friendica\Test\Util;
|
||||
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Model\Storage\IWritableStorage;
|
||||
use Friendica\Core\Storage\Capability\ICanWriteToStorage;
|
||||
|
||||
use Friendica\Core\L10n;
|
||||
|
||||
/**
|
||||
* A backend storage example class
|
||||
*/
|
||||
class SampleStorageBackend implements IWritableStorage
|
||||
class SampleStorageBackend implements ICanWriteToStorage
|
||||
{
|
||||
const NAME = 'Sample Storage';
|
||||
|
||||
|
@ -102,7 +102,7 @@ class SampleStorageBackend implements IWritableStorage
|
|||
return $this->options;
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
public function __toString(): string
|
||||
{
|
||||
return self::NAME;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue