aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/bookmark/BookmarkFileService.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2021-02-04 11:11:33 +0100
committerGitHub <noreply@github.com>2021-02-04 11:11:33 +0100
commit9db1ccdf2ce8381e1f3acb581d3c6a6def095d8c (patch)
tree97a618b77d327a5f963c91522988e24db5a9e158 /application/bookmark/BookmarkFileService.php
parent8997ae6c8e24286f7d47981eaf905e80d2481c10 (diff)
parentbcba6bd353161fab456b423e93571ab027d5423c (diff)
downloadShaarli-9db1ccdf2ce8381e1f3acb581d3c6a6def095d8c.tar.gz
Shaarli-9db1ccdf2ce8381e1f3acb581d3c6a6def095d8c.tar.zst
Shaarli-9db1ccdf2ce8381e1f3acb581d3c6a6def095d8c.zip
Merge pull request #1698 from ArthurHoaro/feature/plugins-search-filterHEADmaster
New plugin hook: ability to add custom filters to Shaarli search engine
Diffstat (limited to 'application/bookmark/BookmarkFileService.php')
-rw-r--r--application/bookmark/BookmarkFileService.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/application/bookmark/BookmarkFileService.php b/application/bookmark/BookmarkFileService.php
index 8ea37427..e64eeafb 100644
--- a/application/bookmark/BookmarkFileService.php
+++ b/application/bookmark/BookmarkFileService.php
@@ -15,6 +15,7 @@ use Shaarli\Formatter\BookmarkMarkdownFormatter;
15use Shaarli\History; 15use Shaarli\History;
16use Shaarli\Legacy\LegacyLinkDB; 16use Shaarli\Legacy\LegacyLinkDB;
17use Shaarli\Legacy\LegacyUpdater; 17use Shaarli\Legacy\LegacyUpdater;
18use Shaarli\Plugin\PluginManager;
18use Shaarli\Render\PageCacheManager; 19use Shaarli\Render\PageCacheManager;
19use Shaarli\Updater\UpdaterUtils; 20use Shaarli\Updater\UpdaterUtils;
20 21
@@ -40,6 +41,9 @@ class BookmarkFileService implements BookmarkServiceInterface
40 /** @var ConfigManager instance */ 41 /** @var ConfigManager instance */
41 protected $conf; 42 protected $conf;
42 43
44 /** @var PluginManager */
45 protected $pluginManager;
46
43 /** @var History instance */ 47 /** @var History instance */
44 protected $history; 48 protected $history;
45 49
@@ -57,6 +61,7 @@ class BookmarkFileService implements BookmarkServiceInterface
57 */ 61 */
58 public function __construct( 62 public function __construct(
59 ConfigManager $conf, 63 ConfigManager $conf,
64 PluginManager $pluginManager,
60 History $history, 65 History $history,
61 Mutex $mutex, 66 Mutex $mutex,
62 bool $isLoggedIn 67 bool $isLoggedIn
@@ -95,7 +100,8 @@ class BookmarkFileService implements BookmarkServiceInterface
95 } 100 }
96 } 101 }
97 102
98 $this->bookmarkFilter = new BookmarkFilter($this->bookmarks, $this->conf); 103 $this->pluginManager = $pluginManager;
104 $this->bookmarkFilter = new BookmarkFilter($this->bookmarks, $this->conf, $this->pluginManager);
99 } 105 }
100 106
101 /** 107 /**