Symfony\Bridge\Doctrine\RegistryInterface::getEntityManagerNames PHP Méthode

getEntityManagerNames() public méthode

Gets all connection names.
public getEntityManagerNames ( ) : array
Résultat array An array of connection names
    function getEntityManagerNames();

Usage Example

 public function __construct(RegistryInterface $registry, DbalLogger $logger = null)
 {
     $this->connections = $registry->getConnectionNames();
     $this->managers = $registry->getEntityManagerNames();
     $this->logger = $logger;
 }