Commaaa2
This commit is contained in:
18
vendor/laravel/framework/src/Illuminate/Session/CacheBasedSessionHandler.php
vendored
Normal file → Executable file
18
vendor/laravel/framework/src/Illuminate/Session/CacheBasedSessionHandler.php
vendored
Normal file → Executable 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;
|
||||
|
||||
Reference in New Issue
Block a user