diff options
author | ArthurHoaro <arthur@hoa.ro> | 2021-02-04 11:11:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-04 11:11:33 +0100 |
commit | 9db1ccdf2ce8381e1f3acb581d3c6a6def095d8c (patch) | |
tree | 97a618b77d327a5f963c91522988e24db5a9e158 /application/bookmark/BookmarkFileService.php | |
parent | 8997ae6c8e24286f7d47981eaf905e80d2481c10 (diff) | |
parent | bcba6bd353161fab456b423e93571ab027d5423c (diff) | |
download | Shaarli-master.tar.gz Shaarli-master.tar.zst Shaarli-master.zip |
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.php | 8 |
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; | |||
15 | use Shaarli\History; | 15 | use Shaarli\History; |
16 | use Shaarli\Legacy\LegacyLinkDB; | 16 | use Shaarli\Legacy\LegacyLinkDB; |
17 | use Shaarli\Legacy\LegacyUpdater; | 17 | use Shaarli\Legacy\LegacyUpdater; |
18 | use Shaarli\Plugin\PluginManager; | ||
18 | use Shaarli\Render\PageCacheManager; | 19 | use Shaarli\Render\PageCacheManager; |
19 | use Shaarli\Updater\UpdaterUtils; | 20 | use 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 | /** |