first commit
This commit is contained in:
23
vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php
vendored
Normal file
23
vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2021 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace think\contract;
|
||||
|
||||
/**
|
||||
* Session驱动接口
|
||||
*/
|
||||
interface SessionHandlerInterface
|
||||
{
|
||||
public function read(string $sessionId): string;
|
||||
public function delete(string $sessionId): bool;
|
||||
public function write(string $sessionId, string $data): bool;
|
||||
}
|
||||
Reference in New Issue
Block a user