/**
  * @param ContainerInterface      $container
  * @param SearchProviderInterface $searchProvider
  * @param string                  $name
  * @param string                  $type
  */
 public function __construct($container, $searchProvider, $name, $type)
 {
     $this->container = $container;
     $this->indexName = $name;
     $this->indexType = $type;
     $this->searchProvider = $searchProvider;
     $this->domainConfiguration = $this->container->get('kunstmaan_admin.domain_configuration');
     $this->locales = $this->domainConfiguration->getBackendLocales();
     $this->analyzerLanguages = $this->container->getParameter('analyzer_languages');
     $this->em = $this->container->get('doctrine')->getManager();
 }
Esempio n. 2
0
 /**
  * @return array
  */
 protected function getBackendLocales()
 {
     return $this->domainConfiguration->getBackendLocales();
 }
 /**
  * @return array
  */
 private function getLocales()
 {
     return $this->domainConfiguration->getBackendLocales();
 }