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:
parent
dee989310a
commit
b8b40a630c
@ -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])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user