Lines Matching defs:connection
67 * @param callable|null $callback OPTIONAL Callback function which can be used to be notified about errors (for example connection down)
163 * Returns the index for the given connection.
393 public function addConnection(Connection $connection)
395 $this->_connectionPool->addConnection($connection);
401 * Determines whether a valid connection is available for use.
540 $connection = $this->getConnection();
541 $request = $this->_lastRequest = new Request($path, $method, $data, $query, $connection, $contentType);
547 $this->_connectionPool->onFail($connection, $e, $this);
554 // In case there is no valid connection left, throw exception which caused the disabling of the connection.
667 foreach ($this->getConfig('connections') as $connection) {
668 $connections[] = Connection::create($this->_prepareConnectionParams($connection));
678 // If no connections set, create default connection