Files
apimacro/vendor/laravel/framework/src/Illuminate/Session/NullSessionHandler.php

75 lines
1.1 KiB
PHP
Raw Normal View History

2024-05-07 12:17:25 +02:00
<?php
namespace Illuminate\Session;
use SessionHandlerInterface;
class NullSessionHandler implements SessionHandlerInterface
{
/**
* {@inheritdoc}
2024-08-13 13:44:16 +00:00
*
* @return bool
2024-05-07 12:17:25 +02:00
*/
2024-08-13 13:44:16 +00:00
#[\ReturnTypeWillChange]
2024-05-07 12:17:25 +02:00
public function open($savePath, $sessionName)
{
return true;
}
/**
* {@inheritdoc}
2024-08-13 13:44:16 +00:00
*
* @return bool
2024-05-07 12:17:25 +02:00
*/
2024-08-13 13:44:16 +00:00
#[\ReturnTypeWillChange]
2024-05-07 12:17:25 +02:00
public function close()
{
return true;
}
/**
* {@inheritdoc}
2024-08-13 13:44:16 +00:00
*
* @return string|false
2024-05-07 12:17:25 +02:00
*/
2024-08-13 13:44:16 +00:00
#[\ReturnTypeWillChange]
2024-05-07 12:17:25 +02:00
public function read($sessionId)
{
return '';
}
/**
* {@inheritdoc}
2024-08-13 13:44:16 +00:00
*
* @return bool
2024-05-07 12:17:25 +02:00
*/
2024-08-13 13:44:16 +00:00
#[\ReturnTypeWillChange]
2024-05-07 12:17:25 +02:00
public function write($sessionId, $data)
{
return true;
}
/**
* {@inheritdoc}
2024-08-13 13:44:16 +00:00
*
* @return bool
2024-05-07 12:17:25 +02:00
*/
2024-08-13 13:44:16 +00:00
#[\ReturnTypeWillChange]
2024-05-07 12:17:25 +02:00
public function destroy($sessionId)
{
return true;
}
/**
* {@inheritdoc}
2024-08-13 13:44:16 +00:00
*
* @return int|false
2024-05-07 12:17:25 +02:00
*/
2024-08-13 13:44:16 +00:00
#[\ReturnTypeWillChange]
2024-05-07 12:17:25 +02:00
public function gc($lifetime)
{
return true;
}
}