Esempio n. 1
0
 /**
  * @todo implement purging for document type
  *
  * Purges all contents from the index
  *
  * @return void
  */
 public function purgeIndex()
 {
     $endpoints = $this->endpointResolver->getEndpoints();
     foreach ($endpoints as $endpointName) {
         $this->purgeEndpoint($this->endpointRegistry->getEndpoint($endpointName));
     }
 }
 public function __construct(EndpointResolver $endpointResolver)
 {
     $this->hasMainLanguagesEndpoint = $endpointResolver->getMainLanguagesEndpoint() !== null;
 }