]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/bookmark/BookmarkServiceInterface.php
Feature: Share private bookmarks using a URL containing a private key
[github/shaarli/Shaarli.git] / application / bookmark / BookmarkServiceInterface.php
index 37a54d03ece93be2642974ee53a8b01cf699a217..9fa615333567416d87c228a3aae1bc041f31167d 100644 (file)
@@ -20,13 +20,14 @@ interface BookmarkServiceInterface
     /**
      * Find a bookmark by hash
      *
-     * @param string $hash
+     * @param string      $hash       Bookmark's hash
+     * @param string|null $privateKey Optional key used to access private links while logged out
      *
      * @return Bookmark
      *
      * @throws \Exception
      */
-    public function findByHash(string $hash): Bookmark;
+    public function findByHash(string $hash, string $privateKey = null);
 
     /**
      * @param $url