diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-01-26 14:35:25 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-07-23 21:19:21 +0200 |
commit | c266a89d0fbb0d60d2d7df0ec171b7cb022224f6 (patch) | |
tree | ef7b34378e19332f0fa44800caa78108aec1a6c7 /application/security | |
parent | 03340c18ead651ef9e11f883745695f2edafbae3 (diff) | |
download | Shaarli-c266a89d0fbb0d60d2d7df0ec171b7cb022224f6.tar.gz Shaarli-c266a89d0fbb0d60d2d7df0ec171b7cb022224f6.tar.zst Shaarli-c266a89d0fbb0d60d2d7df0ec171b7cb022224f6.zip |
Process tag cloud page through Slim controller
Diffstat (limited to 'application/security')
-rw-r--r-- | application/security/SessionManager.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/application/security/SessionManager.php b/application/security/SessionManager.php index 994fcbe5..4ae99168 100644 --- a/application/security/SessionManager.php +++ b/application/security/SessionManager.php | |||
@@ -202,4 +202,14 @@ class SessionManager | |||
202 | { | 202 | { |
203 | return $this->session; | 203 | return $this->session; |
204 | } | 204 | } |
205 | |||
206 | /** | ||
207 | * @param mixed $default value which will be returned if the $key is undefined | ||
208 | * | ||
209 | * @return mixed Content stored in session | ||
210 | */ | ||
211 | public function getSessionParameter(string $key, $default = null) | ||
212 | { | ||
213 | return $this->session[$key] ?? $default; | ||
214 | } | ||
205 | } | 215 | } |