Smile\ElasticsuiteCore\Api\Client\ClientConfigurationInterface::isDebugModeEnabled PHP Method

isDebugModeEnabled() public method

Indicates whether the debug node is enabled or not.
public isDebugModeEnabled ( ) : boolean
return boolean
    public function isDebugModeEnabled();

Usage Example

Example #1
0
 /**
  * {@inheritdoc}
  *
  * @SuppressWarnings(PHPMD.StaticAccess)
  */
 public function createClient()
 {
     if ($this->client === null) {
         $clientBuilder = ClientBuilder::create();
         $hosts = $this->getHosts();
         $clientBuilder->setHosts($hosts);
         if ($this->clientConfiguration->isDebugModeEnabled()) {
             $clientBuilder->setLogger($this->logger);
         }
         $this->client = $clientBuilder->build();
     }
     return $this->client;
 }