/** * Gets all the connections * @return array Array with the name of the connection as key and the Connection object as value */ public function getConnections() { $managerConnections = $this->manager->getConnections(); $connections = array(); foreach ($managerConnections as $name => $driver) { $connections[$name] = new Connection($name, $driver); } return $connections; }