refactoring various pieces of the framework.

This commit is contained in:
Taylor Otwell
2011-10-18 20:19:36 -05:00
parent e985057b4c
commit 9fc9f88a41
18 changed files with 193 additions and 114 deletions

View File

@@ -269,18 +269,12 @@ class Manager {
/**
* Close the session handling for the request.
*
* @param array $flash
* @return void
*/
public static function close($flash = array())
public static function close()
{
$config = Config::$items['session'];
foreach ($flash as $key => $value)
{
static::flash($key, $value);
}
static::$driver->save(static::age(), $config, static::$exists);
static::$transporter->put(static::$session['id'], $config);