public function getConnectionsBySite(Site $site)
    {
        $connections = [];

        $solrServers = $this->getConfigurationsBySite($site);
        foreach ($solrServers as $solrServer) {
            $connections[] = $this->getConnectionFromConfiguration($solrServer);
        }

        return $connections;
    }
public function getConnectionsBySite(Site $site)
    {
        $connections = [];

        $solrServers = $this->getConfigurationsBySite($site);
        foreach ($solrServers as $solrServer) {
            $connections[] = $this->getConnectionFromConfiguration($solrServer);
        }

        return $connections;
    }
public function getConnectionsBySite ( Site $ site ) { $ connections = [ ] ; $ solrServers = $ this -> getConfigurationsBySite ( $ site ) ; foreach ( $ solrServers as $ solrServer ) { $ connections [ ] = $ this -> getConnectionFromConfiguration ( $ solrServer ) ; } return $ connections ; }
Gets all connections configured for a given site.

@param Site $site A TYPO3 site
@return SolrConnection[] An array of Solr connection objects (ApacheSolrForTypo3\Solr\System\Solr\SolrConnection)
Gets all connections configured for a given site .