aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/plugin
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-09-06 14:13:16 +0200
committerGitHub <noreply@github.com>2020-09-06 14:13:16 +0200
commit949a0953109c2738ecd973c44cd728cddc120164 (patch)
treef27a486930ac59b62174d8219456e51d0167cae4 /application/plugin
parenta5dd7d58d25db7ffefc7ab1b39d99da2fe6976ac (diff)
parent80b708a8780b91b092c3a372342959eeca742802 (diff)
downloadShaarli-949a0953109c2738ecd973c44cd728cddc120164.tar.gz
Shaarli-949a0953109c2738ecd973c44cd728cddc120164.tar.zst
Shaarli-949a0953109c2738ecd973c44cd728cddc120164.zip
Merge pull request #1538 from ArthurHoaro/feature/plugins-bookmark-service
Inject BookmarkServiceInterface in plugins data
Diffstat (limited to 'application/plugin')
-rw-r--r--application/plugin/PluginManager.php4
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