src/DatabaseManager.php
public function getDatabases(): array
    {
        $names = array_unique(array_merge(array_keys($this->databases), array_keys($this->config->getDatabases())));

        $result = [];
        foreach ($names as $name) {
            $result[] = $this->database($name);
        }

        return $result;
    }
public function getDatabases(): array
    {
        $names = array_unique(array_merge(array_keys($this->databases), array_keys($this->config->getDatabases())));

        $result = [];
        foreach ($names as $name) {
            $result[] = $this->database($name);
        }

        return $result;
    }
public function getDatabases ( ) : array { $ names = array_unique ( array_merge ( array_keys ( $ this -> databases ) , array_keys ( $ this -> config -> getDatabases ( ) ) ) ) ; $ result = [ ] ; foreach ( $ names as $ name ) { $ result [ ] = $ this -> database ( $ name ) ; } return $ result ; }
Get all databases.

@return Database[]

@throws DatabaseException
Get all databases .