mirror of
https://github.com/predis/predis.git
synced 2026-08-30 04:02:22 +00:00
Slightly change interface for connection factories.
This commit is contained in:
@@ -128,13 +128,11 @@ class ConnectionFactory implements ConnectionFactoryInterface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function createAggregated(AggregatedConnectionInterface $connection, Array $parameters)
|
||||
public function aggregate(AggregatedConnectionInterface $connection, Array $parameters)
|
||||
{
|
||||
foreach ($parameters as $node) {
|
||||
$connection->add($node instanceof SingleConnectionInterface ? $node : $this->create($node));
|
||||
}
|
||||
|
||||
return $connection;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user