Exemplo n.º 1
0
 /**
  * Factory for Combined results object.
  *
  * @param ServiceManager $sm Service manager.
  *
  * @return Combined
  */
 public static function getCombined(ServiceManager $sm)
 {
     $factory = new PluginFactory();
     $combined = $factory->createServiceWithName($sm, 'combined', 'Combined');
     return Factory::initUrlQueryHelper($combined, $sm->getServiceLocator());
 }
Exemplo n.º 2
0
 /**
  * Factory for Primo results object.
  *
  * @param ServiceManager $sm Service manager.
  *
  * @return Solr
  */
 public static function getPrimo(ServiceManager $sm)
 {
     $factory = new PluginFactory();
     $primo = $factory->createServiceWithName($sm, 'primo', 'Primo');
     return Factory::initUrlQueryHelper($primo, $sm);
 }