Ejemplo n.º 1
0
 /**
  * Create the EDS backend.
  *
  * @param Connector $connector Connector
  *
  * @return Backend
  */
 protected function createBackend(Connector $connector)
 {
     $auth = $this->serviceLocator->get('ZfcRbac\\Service\\AuthorizationService');
     $isGuest = !$auth->isGranted('access.EDSExtendedResults');
     $backend = new Backend($connector, $this->createRecordCollectionFactory(), $this->serviceLocator->get('VuFind\\CacheManager')->getCache('object'), new \Zend\Session\Container('EBSCO'), $this->edsConfig, $isGuest);
     $backend->setAuthManager($this->serviceLocator->get('VuFind\\AuthManager'));
     $backend->setLogger($this->logger);
     $backend->setQueryBuilder($this->createQueryBuilder());
     return $backend;
 }
Ejemplo n.º 2
0
 /**
  * Create the EDS backend.
  *
  * @param Connector $connector Connector
  *
  * @return Backend
  */
 protected function createBackend(Connector $connector)
 {
     $backend = new Backend($connector, $this->createRecordCollectionFactory(), $this->serviceLocator->get('VuFind\\CacheManager')->getCache('object'), new \Zend\Session\Container('EBSCO'), $this->edsConfig);
     $backend->setAuthManager($this->serviceLocator->get('VuFind\\AuthManager'));
     $backend->setLogger($this->logger);
     $backend->setQueryBuilder($this->createQueryBuilder());
     return $backend;
 }