You are here

public function AbstractManagerRegistry::getConnections in Plug 7

Gets an array of all registered connections.

Return value

array An array of Connection instances.

Overrides ConnectionRegistry::getConnections

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php, line 142

Class

AbstractManagerRegistry
Abstract implementation of the ManagerRegistry contract.

Namespace

Doctrine\Common\Persistence

Code

public function getConnections() {
  $connections = array();
  foreach ($this->connections as $name => $id) {
    $connections[$name] = $this
      ->getService($id);
  }
  return $connections;
}