Slightly change interface for connection factories.

This commit is contained in:
Daniele Alessandri
2013-11-11 18:16:04 +01:00
parent 3c6389f4dd
commit acd29ec076
5 changed files with 10 additions and 13 deletions
+1 -3
View File
@@ -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;
}
/**