]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/bookmark/BookmarkServiceInterface.php
Process Shaarli install through Slim controller
[github/shaarli/Shaarli.git] / application / bookmark / BookmarkServiceInterface.php
index 7b7a4f09e131df45e0e3c92fffe1272f37cc4de1..37fbda890e2d607552d9b0620ac66f3b4a57cae0 100644 (file)
@@ -177,4 +177,17 @@ interface BookmarkServiceInterface
      * Creates the default database after a fresh install.
      */
     public function initialize();
+
+    /**
+     * Allow to write the datastore from anonymous session (not logged in).
+     *
+     * This covers a few specific use cases, such as datastore initialization,
+     * but it should be used carefully as it can lead to security issues.
+     */
+    public function enableAnonymousPermission();
+
+    /**
+     * Disable anonymous permission.
+     */
+    public function disableAnonymousPermission();
 }