Files
spa-api/laravel/session/drivers/driver.php

33 lines
598 B
PHP
Raw Normal View History

2011-09-14 20:16:13 -05:00
<?php namespace Laravel\Session\Drivers;
2011-06-08 23:45:08 -05:00
interface Driver {
2011-09-08 17:49:16 -05:00
2011-08-19 20:12:39 -05:00
/**
* Load a session from storage by a given ID.
2011-08-19 20:12:39 -05:00
*
* If no session is found for the ID, null will be returned.
*
2011-06-08 23:45:08 -05:00
* @param string $id
* @return array
*/
public function load($id);
2011-06-08 23:45:08 -05:00
/**
* Save a given session to storage.
2011-06-08 23:45:08 -05:00
*
* @param array $session
* @param array $config
2011-09-29 21:22:48 -05:00
* @param bool $exists
2011-06-08 23:45:08 -05:00
* @return void
*/
2011-09-29 21:22:48 -05:00
public function save($session, $config, $exists);
2011-08-19 20:12:39 -05:00
/**
* Delete a session from storage by a given ID.
*
* @param string $id
* @return void
*/
public function delete($id);
2011-08-26 21:42:04 -05:00
2011-06-08 23:45:08 -05:00
}