Lines Matching refs:connections
383 * Establishes the client connections.
437 * @param array|Connection[] $connections
441 public function setConnections(array $connections)
443 $this->_connectionPool->setConnections($connections);
661 * Inits the client connections.
665 $connections = [];
667 foreach ($this->getConfig('connections') as $connection) {
668 $connections[] = Connection::create($this->_prepareConnectionParams($connection));
674 $connections[] = Connection::create($this->_prepareConnectionParams($server));
678 // If no connections set, create default connection
679 if (!$connections) {
680 $connections[] = Connection::create($this->_prepareConnectionParams($this->getConfig()));
693 $this->_connectionPool = new Connection\ConnectionPool($connections, $strategy, $this->_callback);