/** * {@inheritdoc} */ public function createAggregated(AggregatedConnectionInterface $connection, array $parameters) { foreach ($parameters as $node) { $connection->add($node instanceof SingleConnectionInterface ? $node : $this->create($node)); } return $connection; }
/** * {@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; }