refactoring the auto loader.

This commit is contained in:
Taylor Otwell
2011-10-31 23:46:45 -05:00
parent d44c076ebf
commit a0bbc9d472
5 changed files with 32 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
<?php namespace Laravel\Cache; use Laravel\IoC;
<?php namespace Laravel\Cache; use Laravel\IoC, Laravel\Config;
class Manager {
@@ -28,7 +28,7 @@ class Manager {
*/
public static function driver($driver = null)
{
if (is_null($driver)) $driver = Config::get('cache.default');
if (is_null($driver)) $driver = Config::get('cache.driver');
if ( ! array_key_exists($driver, static::$drivers))
{