removed cache and session factories. moved cache item management into cache class and out of drivers. tweaked auth class.
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user