aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/security
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-01-26 14:35:25 +0100
committerArthurHoaro <arthur@hoa.ro>2020-07-23 21:19:21 +0200
commitc266a89d0fbb0d60d2d7df0ec171b7cb022224f6 (patch)
treeef7b34378e19332f0fa44800caa78108aec1a6c7 /application/security
parent03340c18ead651ef9e11f883745695f2edafbae3 (diff)
downloadShaarli-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.php10
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}