use Shaarli\Bookmark\Exception\BookmarkNotFoundException;
use Shaarli\Bookmark\Exception\NotWritableDataStoreException;
-use Shaarli\Config\ConfigManager;
-use Shaarli\History;
/**
* Class BookmarksService
*/
interface BookmarkServiceInterface
{
- /**
- * BookmarksService constructor.
- *
- * @param ConfigManager $conf instance
- * @param History $history instance
- * @param bool $isLoggedIn true if the current user is logged in
- */
- public function __construct(ConfigManager $conf, History $history, $isLoggedIn);
-
/**
* Find a bookmark by hash
*
* @param string $visibility
* @param bool $caseSensitive
* @param bool $untaggedOnly
+ * @param bool $ignoreSticky
*
* @return Bookmark[]
*/
- public function search($request = [], $visibility = null, $caseSensitive = false, $untaggedOnly = false);
+ public function search(
+ $request = [],
+ $visibility = null,
+ $caseSensitive = false,
+ $untaggedOnly = false,
+ bool $ignoreSticky = false
+ );
/**
* Get a single bookmark by its ID.