diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-09-01 13:33:50 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-09-03 15:08:08 +0200 |
commit | 80b708a8780b91b092c3a372342959eeca742802 (patch) | |
tree | af4df63dd9dae3753d477d44d4fc569fc45c3ac8 /application/plugin | |
parent | 0e60b7f1741c35b68a37e0705521669e1191774e (diff) | |
download | Shaarli-80b708a8780b91b092c3a372342959eeca742802.tar.gz Shaarli-80b708a8780b91b092c3a372342959eeca742802.tar.zst Shaarli-80b708a8780b91b092c3a372342959eeca742802.zip |
Inject BookmarkServiceInterface in plugins data
Related discussion: ilesinge/shaarli-related#7
Diffstat (limited to 'application/plugin')
-rw-r--r-- | application/plugin/PluginManager.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/application/plugin/PluginManager.php b/application/plugin/PluginManager.php index 2d93cb3a..7881e3be 100644 --- a/application/plugin/PluginManager.php +++ b/application/plugin/PluginManager.php | |||
@@ -112,6 +112,10 @@ class PluginManager | |||
112 | $data['_BASE_PATH_'] = $params['basePath']; | 112 | $data['_BASE_PATH_'] = $params['basePath']; |
113 | } | 113 | } |
114 | 114 | ||
115 | if (isset($params['bookmarkService'])) { | ||
116 | $data['_BOOKMARK_SERVICE_'] = $params['bookmarkService']; | ||
117 | } | ||
118 | |||
115 | foreach ($this->loadedPlugins as $plugin) { | 119 | foreach ($this->loadedPlugins as $plugin) { |
116 | $hookFunction = $this->buildHookName($hook, $plugin); | 120 | $hookFunction = $this->buildHookName($hook, $plugin); |
117 | 121 | ||