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\PersistenceCode
public function getConnections() {
$connections = array();
foreach ($this->connections as $name => $id) {
$connections[$name] = $this
->getService($id);
}
return $connections;
}