diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-05-18 17:17:36 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-07-23 21:19:21 +0200 |
commit | 7b2ba6ef820335df682fbe3dcfaceef3a62cf4a5 (patch) | |
tree | b9d4b744f514fb3d1b45a40f81323983ca31f7ad /application/container/ContainerBuilder.php | |
parent | f4929b1188b4bc5e92b925ebc44f5ad40bb1a4ed (diff) | |
download | Shaarli-7b2ba6ef820335df682fbe3dcfaceef3a62cf4a5.tar.gz Shaarli-7b2ba6ef820335df682fbe3dcfaceef3a62cf4a5.tar.zst Shaarli-7b2ba6ef820335df682fbe3dcfaceef3a62cf4a5.zip |
RSS/ATOM feeds: process through Slim controller
Diffstat (limited to 'application/container/ContainerBuilder.php')
-rw-r--r-- | application/container/ContainerBuilder.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/application/container/ContainerBuilder.php b/application/container/ContainerBuilder.php index 199f3f67..84406979 100644 --- a/application/container/ContainerBuilder.php +++ b/application/container/ContainerBuilder.php | |||
@@ -7,6 +7,7 @@ namespace Shaarli\Container; | |||
7 | use Shaarli\Bookmark\BookmarkFileService; | 7 | use Shaarli\Bookmark\BookmarkFileService; |
8 | use Shaarli\Bookmark\BookmarkServiceInterface; | 8 | use Shaarli\Bookmark\BookmarkServiceInterface; |
9 | use Shaarli\Config\ConfigManager; | 9 | use Shaarli\Config\ConfigManager; |
10 | use Shaarli\Feed\FeedBuilder; | ||
10 | use Shaarli\Formatter\FormatterFactory; | 11 | use Shaarli\Formatter\FormatterFactory; |
11 | use Shaarli\History; | 12 | use Shaarli\History; |
12 | use Shaarli\Plugin\PluginManager; | 13 | use Shaarli\Plugin\PluginManager; |
@@ -100,6 +101,15 @@ class ContainerBuilder | |||
100 | ); | 101 | ); |
101 | }; | 102 | }; |
102 | 103 | ||
104 | $container['feedBuilder'] = function (ShaarliContainer $container): FeedBuilder { | ||
105 | return new FeedBuilder( | ||
106 | $container->bookmarkService, | ||
107 | $container->formatterFactory->getFormatter(), | ||
108 | $container->environment, | ||
109 | $container->loginManager->isLoggedIn() | ||
110 | ); | ||
111 | }; | ||
112 | |||
103 | return $container; | 113 | return $container; |
104 | } | 114 | } |
105 | } | 115 | } |