mirror of
https://github.com/predis/predis.git
synced 2026-08-28 03:02:04 +00:00
Redesign how Predis\ConnectionFactory works and make more sense out of it.
This commit is contained in:
@@ -30,7 +30,11 @@ class ClientConnectionFactory extends Option
|
||||
return $value;
|
||||
}
|
||||
if (is_array($value)) {
|
||||
return new ConnectionFactory($value);
|
||||
$factory = $this->getDefault();
|
||||
foreach ($value as $scheme => $initializer) {
|
||||
$factory->define($scheme, $initializer);
|
||||
}
|
||||
return $factory;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user