/**
  * {@inheritdoc}
  */
 public function createAggregated(AggregatedConnectionInterface $connection, array $parameters)
 {
     foreach ($parameters as $node) {
         $connection->add($node instanceof SingleConnectionInterface ? $node : $this->create($node));
     }
     return $connection;
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function createAggregated(AggregatedConnectionInterface $connection, $parameters, ServerProfileInterface $profile = null)
 {
     foreach ($parameters as $node) {
         $connection->add($node instanceof SingleConnectionInterface ? $node : $this->create($node, $profile));
     }
     return $connection;
 }