You are here

public function ApiClient::__construct in Auth0 Single Sign On 8.2

File

vendor/auth0/auth0-php/src/API/Helpers/ApiClient.php, line 54

Class

ApiClient

Namespace

Auth0\SDK\API\Helpers

Code

public function __construct($config) {
  $this->basePath = $config['basePath'];
  $this->domain = $config['domain'];
  $this->returnType = isset($config['returnType']) ? $config['returnType'] : null;
  $this->headers = isset($config['headers']) ? $config['headers'] : [];
  $this->guzzleOptions = isset($config['guzzleOptions']) ? $config['guzzleOptions'] : [];
  if (self::$infoHeadersDataEnabled) {
    $this->headers[] = new Telemetry(self::getInfoHeadersData()
      ->build());
  }
}