Commit 4609528d by Taylor Otwell

fixed bug in session and cache factories.

parent dbdd45d9
...@@ -37,15 +37,15 @@ class Cache { ...@@ -37,15 +37,15 @@ class Cache {
switch ($driver) switch ($driver)
{ {
case 'file': case 'file':
static::$drivers[$driver] = new Cache\Driver\File; static::$drivers[$driver] = new Cache\File;
break; break;
case 'memcached': case 'memcached':
static::$drivers[$driver] = new Cache\Driver\Memcached; static::$drivers[$driver] = new Cache\Memcached;
break; break;
case 'apc': case 'apc':
static::$drivers[$driver] = new Cache\Driver\APC; static::$drivers[$driver] = new Cache\APC;
break; break;
default: default:
......
...@@ -28,19 +28,19 @@ class Session { ...@@ -28,19 +28,19 @@ class Session {
switch (Config::get('session.driver')) switch (Config::get('session.driver'))
{ {
case 'file': case 'file':
static::$driver = new Session\Driver\File; static::$driver = new Session\File;
break; break;
case 'db': case 'db':
static::$driver = new Session\Driver\DB; static::$driver = new Session\DB;
break; break;
case 'memcached': case 'memcached':
static::$driver = new Session\Driver\Memcached; static::$driver = new Session\Memcached;
break; break;
case 'apc': case 'apc':
static::$driver = new Session\Driver\APC; static::$driver = new Session\APC;
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment