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
@@ -43,11 +43,10 @@ interface ConnectionFactoryInterface
public function create($parameters);
/**
* Prepares an aggregation of connection objects.
* Aggregates single connections into an aggregate connection instance.
*
* @param AggregatedConnectionInterface $cluster Instance of an aggregated connection class.
* @param array $parameters List of parameters for each connection object.
* @return AggregatedConnectionInterface
*/
public function createAggregated(AggregatedConnectionInterface $cluster, Array $parameters);
public function aggregate(AggregatedConnectionInterface $cluster, Array $parameters);
}