Exemplo n.º 1
0
 /**
  * @param string $tenantName
  * @param $tenantConfigXml
  * @param null $totalConfigXml
  */
 public function __construct($tenantName, $tenantConfigXml, $totalConfigXml = null)
 {
     parent::__construct($tenantName, $tenantConfigXml, $totalConfigXml);
     if ($tenantConfigXml->generalSettings) {
         $this->setGeneralSettings($tenantConfigXml->generalSettings->toArray());
     }
     $this->indexSettings = json_decode($tenantConfigXml->indexSettingsJson, true);
     $this->elasticSearchClientParams = json_decode($tenantConfigXml->elasticSearchClientParamsJson, true);
 }
Exemplo n.º 2
0
 /**
  * @param string $tenantName
  * @param $tenantConfigXml
  * @param null $totalConfigXml
  */
 public function __construct($tenantName, $tenantConfigXml, $totalConfigXml = null)
 {
     parent::__construct($tenantName, $tenantConfigXml, $totalConfigXml);
     $this->clientConfig = $tenantConfigXml->clientConfig->toArray();
 }