Got rid of all IoC::container() calls

This commit is contained in:
Phill Sparks
2011-11-11 09:52:30 +00:00
parent 9dbe7a29e2
commit b4fe148de5
10 changed files with 34 additions and 34 deletions

View File

@@ -32,12 +32,12 @@ class Manager {
if ( ! array_key_exists($driver, static::$drivers))
{
if ( ! IoC::container()->registered("laravel.cache.{$driver}"))
if ( ! IoC::registered("laravel.cache.{$driver}"))
{
throw new \Exception("Cache driver [$driver] is not supported.");
}
return static::$drivers[$driver] = IoC::container()->core("cache.{$driver}");
return static::$drivers[$driver] = IoC::core("cache.{$driver}");
}
return static::$drivers[$driver];
@@ -62,4 +62,4 @@ class Manager {
return call_user_func_array(array(static::driver(), $method), $parameters);
}
}
}