Browse Source

fixed bug in session and cache factories.

Taylor Otwell 13 years ago
parent
commit
4609528d93
2 changed files with 7 additions and 7 deletions
  1. 3 3
      system/cache.php
  2. 4 4
      system/session.php

+ 3 - 3
system/cache.php

@@ -37,15 +37,15 @@ class Cache {
 			switch ($driver)
 			{
 				case 'file':
-					static::$drivers[$driver] = new Cache\Driver\File;
+					static::$drivers[$driver] = new Cache\File;
 					break;
 
 				case 'memcached':
-					static::$drivers[$driver] = new Cache\Driver\Memcached;
+					static::$drivers[$driver] = new Cache\Memcached;
 					break;
 
 				case 'apc':
-					static::$drivers[$driver] = new Cache\Driver\APC;
+					static::$drivers[$driver] = new Cache\APC;
 					break;
 
 				default:

+ 4 - 4
system/session.php

@@ -28,19 +28,19 @@ class Session {
 			switch (Config::get('session.driver'))
 			{
 				case 'file':
-					static::$driver = new Session\Driver\File;
+					static::$driver = new Session\File;
 					break;
 
 				case 'db':
-					static::$driver = new Session\Driver\DB;
+					static::$driver = new Session\DB;
 					break;
 
 				case 'memcached':
-					static::$driver = new Session\Driver\Memcached;
+					static::$driver = new Session\Memcached;
 					break;
 
 				case 'apc':
-					static::$driver = new Session\Driver\APC;
+					static::$driver = new Session\APC;
 					break;
 
 				default: