diff options
author | ArthurHoaro <arthur@hoa.ro> | 2021-01-20 15:59:00 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2021-02-04 11:02:50 +0100 |
commit | bcba6bd353161fab456b423e93571ab027d5423c (patch) | |
tree | 97a618b77d327a5f963c91522988e24db5a9e158 /application/container | |
parent | 8997ae6c8e24286f7d47981eaf905e80d2481c10 (diff) | |
download | Shaarli-bcba6bd353161fab456b423e93571ab027d5423c.tar.gz Shaarli-bcba6bd353161fab456b423e93571ab027d5423c.tar.zst Shaarli-bcba6bd353161fab456b423e93571ab027d5423c.zip |
New plugin hook: ability to add custom filters to Shaarli search engine
A new plugin hook has been added: hook_test_filter_search_entry
This hook allows to filter out bookmark with custom plugin code when a search is performed.
Related to #143
Diffstat (limited to 'application/container')
-rw-r--r-- | application/container/ContainerBuilder.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/application/container/ContainerBuilder.php b/application/container/ContainerBuilder.php index 6d69a880..f66d75bd 100644 --- a/application/container/ContainerBuilder.php +++ b/application/container/ContainerBuilder.php | |||
@@ -95,6 +95,7 @@ class ContainerBuilder | |||
95 | $container['bookmarkService'] = function (ShaarliContainer $container): BookmarkServiceInterface { | 95 | $container['bookmarkService'] = function (ShaarliContainer $container): BookmarkServiceInterface { |
96 | return new BookmarkFileService( | 96 | return new BookmarkFileService( |
97 | $container->conf, | 97 | $container->conf, |
98 | $container->pluginManager, | ||
98 | $container->history, | 99 | $container->history, |
99 | new FlockMutex(fopen(SHAARLI_MUTEX_FILE, 'r'), 2), | 100 | new FlockMutex(fopen(SHAARLI_MUTEX_FILE, 'r'), 2), |
100 | $container->loginManager->isLoggedIn() | 101 | $container->loginManager->isLoggedIn() |