You are here

public function LockrSettings::getOptions in Lockr 7.3

Gets the Guzzle client options to apply.

Return value

array

Overrides SettingsInterface::getOptions

1 call to LockrSettings::getOptions()
LockrDevSettings::getOptions in vendor/lockr/lockr/src/LockrDevSettings.php
Gets the Guzzle client options to apply.
1 method overrides LockrSettings::getOptions()
LockrDevSettings::getOptions in vendor/lockr/lockr/src/LockrDevSettings.php
Gets the Guzzle client options to apply.

File

vendor/lockr/lockr/src/LockrSettings.php, line 38

Class

LockrSettings

Namespace

Lockr

Code

public function getOptions() {
  $opts = [];
  if ($this->certPath) {
    if ($this->certPassword) {
      $opts['cert'] = [
        $this->certPath,
        $this->certPassword,
      ];
    }
    else {
      $opts['cert'] = $this->certPath;
    }
  }
  return $opts;
}