]> git.mxchange.org Git - friendica.git/blobdiff - tests/Util/SampleStorageBackend.php
Remove multi profiles feature
[friendica.git] / tests / Util / SampleStorageBackend.php
index 3f4eb90ada0f91cbddc18426813ad9f4dd75b448..f16c3a64158784814592ec649976cf9109835c94 100644 (file)
@@ -2,9 +2,10 @@
 
 namespace Friendica\Test\Util;
 
+use Friendica\Core\Hook;
 use Friendica\Model\Storage\IStorage;
 
-use Friendica\Core\L10n\L10n;
+use Friendica\Core\L10n;
 
 /**
  * A backend storage example class
@@ -91,4 +92,13 @@ class SampleStorageBackend implements IStorage
        {
                return self::NAME;
        }
+
+       /**
+        * This one is a hack to register this class to the hook
+        */
+       public static function registerHook()
+       {
+               Hook::register('storage_instance', __DIR__ . '/SampleStorageBackendInstance.php', 'create_instance');
+       }
 }
+