Got rid of all IoC::container() calls
This commit is contained in:
6
laravel/cache/manager.php
vendored
6
laravel/cache/manager.php
vendored
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user