diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-01-23 20:06:32 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-01-26 11:34:14 +0100 |
commit | 0498b209b551cad5595312583e5d6fb1bc3303a5 (patch) | |
tree | a7b176fc39788bc7f5eef1ddcd18877d2defdfd9 /application/container | |
parent | 9e4cc28e2957e1f7df713d52a03e350d728dc58e (diff) | |
download | Shaarli-0498b209b551cad5595312583e5d6fb1bc3303a5.tar.gz Shaarli-0498b209b551cad5595312583e5d6fb1bc3303a5.tar.zst Shaarli-0498b209b551cad5595312583e5d6fb1bc3303a5.zip |
Execute common plugin hooks before rendering login page
Diffstat (limited to 'application/container')
-rw-r--r-- | application/container/ContainerBuilder.php | 4 | ||||
-rw-r--r-- | application/container/ShaarliContainer.php | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/application/container/ContainerBuilder.php b/application/container/ContainerBuilder.php index ff29825c..e2c78ccc 100644 --- a/application/container/ContainerBuilder.php +++ b/application/container/ContainerBuilder.php | |||
@@ -72,6 +72,10 @@ class ContainerBuilder | |||
72 | ); | 72 | ); |
73 | }; | 73 | }; |
74 | 74 | ||
75 | $container['pluginManager'] = function (ShaarliContainer $container): PluginManager { | ||
76 | return new PluginManager($container->conf); | ||
77 | }; | ||
78 | |||
75 | return $container; | 79 | return $container; |
76 | } | 80 | } |
77 | } | 81 | } |
diff --git a/application/container/ShaarliContainer.php b/application/container/ShaarliContainer.php index f5483d5e..3fa9116e 100644 --- a/application/container/ShaarliContainer.php +++ b/application/container/ShaarliContainer.php | |||
@@ -7,6 +7,7 @@ namespace Shaarli\Container; | |||
7 | use Shaarli\Bookmark\BookmarkServiceInterface; | 7 | use Shaarli\Bookmark\BookmarkServiceInterface; |
8 | use Shaarli\Config\ConfigManager; | 8 | use Shaarli\Config\ConfigManager; |
9 | use Shaarli\History; | 9 | use Shaarli\History; |
10 | use Shaarli\Plugin\PluginManager; | ||
10 | use Shaarli\Render\PageBuilder; | 11 | use Shaarli\Render\PageBuilder; |
11 | use Shaarli\Security\LoginManager; | 12 | use Shaarli\Security\LoginManager; |
12 | use Shaarli\Security\SessionManager; | 13 | use Shaarli\Security\SessionManager; |
@@ -21,6 +22,7 @@ use Slim\Container; | |||
21 | * @property History $history | 22 | * @property History $history |
22 | * @property BookmarkServiceInterface $bookmarkService | 23 | * @property BookmarkServiceInterface $bookmarkService |
23 | * @property PageBuilder $pageBuilder | 24 | * @property PageBuilder $pageBuilder |
25 | * @property PluginManager $pluginManager | ||
24 | */ | 26 | */ |
25 | class ShaarliContainer extends Container | 27 | class ShaarliContainer extends Container |
26 | { | 28 | { |