mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-24 18:13:00 +01:00
Removing setDefaultOption from Client and ClientInterface
This commit is contained in:
parent
6da2bdf575
commit
6f2cad5dc0
@ -98,21 +98,6 @@ class Client implements ClientInterface
|
||||
return $this->config->getPath($key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a default request option on the client that will be used as a default for each request
|
||||
*
|
||||
* @param string $keyOrPath request.options key (e.g. allow_redirects) or path to a nested key (e.g. headers/foo)
|
||||
* @param mixed $value Value to set
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setDefaultOption($keyOrPath, $value)
|
||||
{
|
||||
$this->config->setPath("defaults/{$keyOrPath}", $value);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve a default request option from the client
|
||||
*
|
||||
|
@ -117,14 +117,4 @@ interface ClientInterface extends HasDispatcherInterface
|
||||
* @return string|null
|
||||
*/
|
||||
public function getBaseUrl();
|
||||
|
||||
/**
|
||||
* Set a default request option on the client that will be used as a default for each request
|
||||
*
|
||||
* @param string $keyOrPath request.options key (e.g. allow_redirects) or path to a nested key (e.g. headers/foo)
|
||||
* @param mixed $value Value to set
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setDefaultOption($keyOrPath, $value);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user