public function getConnectionFromConfiguration(array $config)
    {
        if(empty($config['read']) && !empty($config['solrHost'])) {
            throw new \InvalidArgumentException('Invalid registry data please re-initialize your solr connections');
        }

        return $this->getSolrConnectionForNodes($config['read'], $config['write']);
    }
public function getConnectionFromConfiguration(array $config)
    {
        if(empty($config['read']) && !empty($config['solrHost'])) {
            throw new \InvalidArgumentException('Invalid registry data please re-initialize your solr connections');
        }

        return $this->getSolrConnectionForNodes($config['read'], $config['write']);
    }
public function getConnectionFromConfiguration ( array $ config ) { if ( empty ( $ config [ 'read' ] ) && ! empty ( $ config [ 'solrHost' ] ) ) { throw new \ InvalidArgumentException ( 'Invalid registry data please re-initialize your solr connections' ) ; } return $ this -> getSolrConnectionForNodes ( $ config [ 'read' ] , $ config [ 'write' ] ) ; }
Creates a solr configuration from the configuration array and returns it.

@param array $config The solr configuration array
@return SolrConnection
Creates a solr configuration from the configuration array and returns it .