continued refactoring.

This commit is contained in:
Taylor Otwell
2011-08-31 21:57:37 -05:00
parent 61eced25a1
commit 30514d9020
7 changed files with 13 additions and 65 deletions

View File

@@ -52,7 +52,7 @@ class Manager {
if ( ! array_key_exists($driver, $this->drivers))
{
if ( ! in_array($driver, array('apc', 'file', 'memcached')))
if ( ! $this->container->registered('laravel.cache.'.$driver))
{
throw new \Exception("Cache driver [$driver] is not supported.");
}