diff options
Diffstat (limited to 'application/container/ContainerBuilder.php')
-rw-r--r-- | application/container/ContainerBuilder.php | 7 |
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; | |||
15 | use Shaarli\Plugin\PluginManager; | 15 | use Shaarli\Plugin\PluginManager; |
16 | use Shaarli\Render\PageBuilder; | 16 | use Shaarli\Render\PageBuilder; |
17 | use Shaarli\Render\PageCacheManager; | 17 | use Shaarli\Render\PageCacheManager; |
18 | use Shaarli\Security\CookieManager; | ||
18 | use Shaarli\Security\LoginManager; | 19 | use Shaarli\Security\LoginManager; |
19 | use Shaarli\Security\SessionManager; | 20 | use Shaarli\Security\SessionManager; |
20 | use Shaarli\Thumbnailer; | 21 | use 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 | ||