1
0
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:
Michael Dowling 2013-09-03 22:37:09 -07:00
parent 6da2bdf575
commit 6f2cad5dc0
2 changed files with 0 additions and 25 deletions

View File

@ -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
*

View File

@ -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);
}