From 80b708a8780b91b092c3a372342959eeca742802 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 1 Sep 2020 13:33:50 +0200 Subject: Inject BookmarkServiceInterface in plugins data Related discussion: ilesinge/shaarli-related#7 --- application/plugin/PluginManager.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'application/plugin') 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 $data['_BASE_PATH_'] = $params['basePath']; } + if (isset($params['bookmarkService'])) { + $data['_BOOKMARK_SERVICE_'] = $params['bookmarkService']; + } + foreach ($this->loadedPlugins as $plugin) { $hookFunction = $this->buildHookName($hook, $plugin); -- cgit v1.2.3