Exemple #1
0
 /**
  * Checks the solr schema name and adds it to the report.
  *
  * @param SolrService $solr
  */
 protected function checkSolrSchemaName(SolrService $solr)
 {
     try {
         $solrSchemaMessage = $solr->getSchemaName();
     } catch (\Exception $e) {
         $this->responseStatus = Status::ERROR;
         $solrSchemaMessage = 'Error determining schema name: ' . $e->getMessage();
     }
     $this->responseMessage = $this->replaceMarkerInResponse($this->responseMessage, 'SOLR_SCHEMA', $solrSchemaMessage);
 }