aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/container
diff options
context:
space:
mode:
Diffstat (limited to 'application/container')
-rw-r--r--application/container/ContainerBuilder.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/application/container/ContainerBuilder.php b/application/container/ContainerBuilder.php
index c5c4a2c3..199f3f67 100644
--- a/application/container/ContainerBuilder.php
+++ b/application/container/ContainerBuilder.php
@@ -94,7 +94,10 @@ class ContainerBuilder
94 }; 94 };
95 95
96 $container['pageCacheManager'] = function (ShaarliContainer $container): PageCacheManager { 96 $container['pageCacheManager'] = function (ShaarliContainer $container): PageCacheManager {
97 return new PageCacheManager($container->conf->get('resource.page_cache')); 97 return new PageCacheManager(
98 $container->conf->get('resource.page_cache'),
99 $container->loginManager->isLoggedIn()
100 );
98 }; 101 };
99 102
100 return $container; 103 return $container;