You are here

public function Client::getConfig in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/guzzle/src/Client.php \GuzzleHttp\Client::getConfig()

Get a client configuration option.

These options include default request options of the client, a "handler" (if utilized by the concrete client), and a "base_uri" if utilized by the concrete client.

Parameters

string|null $option The config option to retrieve.:

Return value

mixed

Overrides ClientInterface::getConfig

File

vendor/guzzlehttp/guzzle/src/Client.php, line 132

Class

Client
@method ResponseInterface get($uri, array $options = []) @method ResponseInterface head($uri, array $options = []) @method ResponseInterface put($uri, array $options = []) @method ResponseInterface post($uri, array $options = []) @method…

Namespace

GuzzleHttp

Code

public function getConfig($option = null) {
  return $option === null ? $this->config : (isset($this->config[$option]) ? $this->config[$option] : null);
}