aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/container/ContainerBuilder.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/container/ContainerBuilder.php')
-rw-r--r--application/container/ContainerBuilder.php5
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;
7use Shaarli\Bookmark\BookmarkFileService; 7use Shaarli\Bookmark\BookmarkFileService;
8use Shaarli\Bookmark\BookmarkServiceInterface; 8use Shaarli\Bookmark\BookmarkServiceInterface;
9use Shaarli\Config\ConfigManager; 9use Shaarli\Config\ConfigManager;
10use Shaarli\Formatter\FormatterFactory;
10use Shaarli\History; 11use Shaarli\History;
11use Shaarli\Plugin\PluginManager; 12use Shaarli\Plugin\PluginManager;
12use Shaarli\Render\PageBuilder; 13use 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}