【Laravel3.0.0源码阅读分析】会话驱动接口driver.php
作者:互联网
<?php namespace Laravel\Session\Drivers;
interface Driver {
/**
* Load a session from storage by a given ID.
* 通过给定的ID从存储加载会话。
* If no session is found for the ID, null will be returned.
*
* @param string $id
* @return array
*/
public function load($id);
/**
* Save a given session to storage.
* 将给定的会话保存到存储。
* @param array $session
* @param array $config
* @param bool $exists
* @return void
*/
public function save($session, $config, $exists);
/**
* Delete a session from storage by a given ID.
* 通过给定的 ID 从存储中删除会话。
* @param string $id
* @return void
*/
public function delete($id);
}
github地址: https://github.com/liu-shilong/laravel3-scr
标签:github,driver,Laravel3.0,liu,源码,https,scr 来源: https://blog.csdn.net/qq2942713658/article/details/117452251