You are here

public function AbstractManagerRegistry::getManagers in Zircon Profile 8

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

Gets an array of all registered object managers.

Return value

\Doctrine\Common\Persistence\ObjectManager[] An array of ObjectManager instances

Overrides ManagerRegistry::getManagers

File

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

Class

AbstractManagerRegistry
Abstract implementation of the ManagerRegistry contract.

Namespace

Doctrine\Common\Persistence

Code

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