Beispiel #1
0
 /**
  * Constructor
  *
  * @param \Zend\Config\Config           $config  config
  * @param \VuFind\Search\BackendManager $backend backend manager
  */
 public function __construct($config, $backend)
 {
     $this->config = $config;
     $this->solr = $backend->getConnector();
 }
Beispiel #2
0
 /**
  * Constructor
  *
  * @param \VuFind\Config\PluginManager  $configLoader Configuration loader
  * @param \VuFind\Search\BackendManager $solr         Search interface
  */
 public function __construct(\VuFind\Config\PluginManager $configLoader, $solr)
 {
     $this->configLoader = $configLoader;
     $this->solr = $solr;
     $this->queryBuilder = $solr->getQueryBuilder();
     $this->solrConnector = $solr->getConnector();
 }