1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-26 02:53:22 +01:00

Fixing bug in cache adapter factory

This commit is contained in:
Michael Dowling 2012-05-11 09:18:21 -07:00
parent dee989310a
commit b8b40a630c

View File

@ -24,7 +24,7 @@ class CacheAdapterFactory
if (!isset($config['cache.adapter']) && !isset($config['cache.provider'])) {
$config['cache.adapter'] = 'Guzzle\\Common\\Cache\\NullCacheAdapter';
$config['cache.provider'] = null;
} elseif (!isset($config['cache.provider'])) { //config array instead of options
} else {
// Validate that the options are valid
foreach (array('cache.adapter', 'cache.provider') as $required) {
if (!isset($config[$required])) {