getConnectionNames() public method

Gets all connection names.
public getConnectionNames ( ) : array
return array An array of connection names
 public function __construct(RegistryInterface $registry, DbalLogger $logger = null)
 {
     $this->connections = $registry->getConnectionNames();
     $this->managers = $registry->getEntityManagerNames();
     $this->logger = $logger;
 }