You are here

public function AbstractManagerRegistry::getConnections in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php \Doctrine\Common\Persistence\AbstractManagerRegistry::getConnections()

Gets an array of all registered connections.

Return value

array An array of Connection instances.

Overrides ConnectionRegistry::getConnections

File

vendor/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;
}