Esempio n. 1
0
 /**
  * Create the LibGuides backend.
  *
  * @param Connector $connector Connector
  *
  * @return Backend
  */
 protected function createBackend(Connector $connector)
 {
     $defaultSearch = isset($this->libGuidesConfig->General->defaultSearch) ? $this->libGuidesConfig->General->defaultSearch : null;
     $backend = new Backend($connector, $this->createRecordCollectionFactory(), $defaultSearch);
     $backend->setLogger($this->logger);
     $backend->setQueryBuilder($this->createQueryBuilder());
     return $backend;
 }