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.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/application/container/ContainerBuilder.php b/application/container/ContainerBuilder.php
index ccb87c3a..593aafb7 100644
--- a/application/container/ContainerBuilder.php
+++ b/application/container/ContainerBuilder.php
@@ -15,6 +15,7 @@ use Shaarli\Netscape\NetscapeBookmarkUtils;
15use Shaarli\Plugin\PluginManager; 15use Shaarli\Plugin\PluginManager;
16use Shaarli\Render\PageBuilder; 16use Shaarli\Render\PageBuilder;
17use Shaarli\Render\PageCacheManager; 17use Shaarli\Render\PageCacheManager;
18use Shaarli\Security\CookieManager;
18use Shaarli\Security\LoginManager; 19use Shaarli\Security\LoginManager;
19use Shaarli\Security\SessionManager; 20use Shaarli\Security\SessionManager;
20use Shaarli\Thumbnailer; 21use Shaarli\Thumbnailer;
@@ -38,6 +39,9 @@ class ContainerBuilder
38 /** @var SessionManager */ 39 /** @var SessionManager */
39 protected $session; 40 protected $session;
40 41
42 /** @var CookieManager */
43 protected $cookieManager;
44
41 /** @var LoginManager */ 45 /** @var LoginManager */
42 protected $login; 46 protected $login;
43 47
@@ -47,11 +51,13 @@ class ContainerBuilder
47 public function __construct( 51 public function __construct(
48 ConfigManager $conf, 52 ConfigManager $conf,
49 SessionManager $session, 53 SessionManager $session,
54 CookieManager $cookieManager,
50 LoginManager $login 55 LoginManager $login
51 ) { 56 ) {
52 $this->conf = $conf; 57 $this->conf = $conf;
53 $this->session = $session; 58 $this->session = $session;
54 $this->login = $login; 59 $this->login = $login;
60 $this->cookieManager = $cookieManager;
55 } 61 }
56 62
57 public function build(): ShaarliContainer 63 public function build(): ShaarliContainer
@@ -60,6 +66,7 @@ class ContainerBuilder
60 66
61 $container['conf'] = $this->conf; 67 $container['conf'] = $this->conf;
62 $container['sessionManager'] = $this->session; 68 $container['sessionManager'] = $this->session;
69 $container['cookieManager'] = $this->cookieManager;
63 $container['loginManager'] = $this->login; 70 $container['loginManager'] = $this->login;
64 $container['basePath'] = $this->basePath; 71 $container['basePath'] = $this->basePath;
65 72