diff options
Diffstat (limited to 'application/container/ContainerBuilder.php')
-rw-r--r-- | application/container/ContainerBuilder.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/application/container/ContainerBuilder.php b/application/container/ContainerBuilder.php index e2c78ccc..99c12334 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\Formatter\FormatterFactory; | ||
10 | use Shaarli\History; | 11 | use Shaarli\History; |
11 | use Shaarli\Plugin\PluginManager; | 12 | use Shaarli\Plugin\PluginManager; |
12 | use Shaarli\Render\PageBuilder; | 13 | use Shaarli\Render\PageBuilder; |
@@ -76,6 +77,10 @@ class ContainerBuilder | |||
76 | return new PluginManager($container->conf); | 77 | return new PluginManager($container->conf); |
77 | }; | 78 | }; |
78 | 79 | ||
80 | $container['formatterFactory'] = function (ShaarliContainer $container): FormatterFactory { | ||
81 | return new FormatterFactory($container->conf, $container->loginManager->isLoggedIn()); | ||
82 | }; | ||
83 | |||
79 | return $container; | 84 | return $container; |
80 | } | 85 | } |
81 | } | 86 | } |