Refactoring the cache class.

This commit is contained in:
Taylor Otwell 2011-08-08 10:38:40 -05:00
parent 130772ca57
commit ee5212a27f
1 changed files with 4 additions and 1 deletions

View File

@ -54,7 +54,10 @@ public static function driver($driver = null)
*/
public static function get($key, $default = null, $driver = null)
{
if (is_null($driver)) $driver = Config::get('cache.driver');
if (is_null($driver))
{
$driver = Config::get('cache.driver');
}
if (is_null($item = static::driver($driver)->get($key)))
{