/**
  * {@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;
 }