removed cache and session factories. moved cache item management into cache class and out of drivers. tweaked auth class.

This commit is contained in:
Taylor Otwell
2011-07-09 22:15:42 -05:00
parent ceb0e1a807
commit ca58f80b22
7 changed files with 24 additions and 113 deletions

View File

@@ -1,32 +0,0 @@
<?php namespace System\Session;
class Factory {
/**
* Create a session driver instance.
*
* @param string $driver
* @return Driver
*/
public static function make($driver)
{
switch ($driver)
{
case 'file':
return new Driver\File;
case 'db':
return new Driver\DB;
case 'memcached':
return new Driver\Memcached;
case 'apc':
return new Driver\APC;
default:
throw new \Exception("Session driver [$driver] is not supported.");
}
}
}