src/Config/DatabaseConfig.php
public function getDatabases(): array
    {
        $result = [];
        foreach (array_keys($this->config['databases'] ?? []) as $database) {
            $result[$database] = $this->getDatabase($database);
        }

        return $result;
    }
public function getDatabases(): array
    {
        $result = [];
        foreach (array_keys($this->config['databases'] ?? []) as $database) {
            $result[$database] = $this->getDatabase($database);
        }

        return $result;
    }
public function getDatabases ( ) : array { $ result = [ ] ; foreach ( array_keys ( $ this -> config [ 'databases' ] ?? [ ] ) as $ database ) { $ result [ $ database ] = $ this -> getDatabase ( $ database ) ; } return $ result ; }
Get named list of all databases.

@return DatabasePartial[]
Get named list of all databases .