function 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
Deprecated
Client::getConfig will be removed in guzzlehttp/guzzle:8.0.
File
-
vendor/
guzzlehttp/ guzzle/ src/ Client.php, line 205
Class
- Client
- @final
Namespace
GuzzleHttpCode
public function getConfig(?string $option = null) {
return $option === null ? $this->config : $this->config[$option] ?? null;
}