Always return cache driver instance.

This commit is contained in:
Taylor Otwell 2011-08-08 09:58:16 -05:00
parent a26efbc2e3
commit 6f26ce6e5f
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ public static function driver($driver = null)
throw new \Exception("Cache driver [$driver] is not supported."); throw new \Exception("Cache driver [$driver] is not supported.");
} }
} }
return static::$drivers[$driver];
} }
/** /**