This commit is contained in:
Paolo A
2024-08-13 13:44:16 +00:00
parent 1bbb23088d
commit e796d76612
4001 changed files with 30101 additions and 40075 deletions

View File

@@ -36,7 +36,10 @@ class CacheBasedSessionHandler implements SessionHandlerInterface
/**
* {@inheritdoc}
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function open($savePath, $sessionName)
{
return true;
@@ -44,7 +47,10 @@ class CacheBasedSessionHandler implements SessionHandlerInterface
/**
* {@inheritdoc}
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function close()
{
return true;
@@ -52,7 +58,10 @@ class CacheBasedSessionHandler implements SessionHandlerInterface
/**
* {@inheritdoc}
*
* @return string|false
*/
#[\ReturnTypeWillChange]
public function read($sessionId)
{
return $this->cache->get($sessionId, '');
@@ -60,7 +69,10 @@ class CacheBasedSessionHandler implements SessionHandlerInterface
/**
* {@inheritdoc}
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function write($sessionId, $data)
{
return $this->cache->put($sessionId, $data, $this->minutes * 60);
@@ -68,7 +80,10 @@ class CacheBasedSessionHandler implements SessionHandlerInterface
/**
* {@inheritdoc}
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function destroy($sessionId)
{
return $this->cache->forget($sessionId);
@@ -76,7 +91,10 @@ class CacheBasedSessionHandler implements SessionHandlerInterface
/**
* {@inheritdoc}
*
* @return int|false
*/
#[\ReturnTypeWillChange]
public function gc($lifetime)
{
return true;