From 6f2cad5dc03df140510b0f9fc80c55e136df8fc8 Mon Sep 17 00:00:00 2001 From: Michael Dowling Date: Tue, 3 Sep 2013 22:37:09 -0700 Subject: [PATCH] Removing setDefaultOption from Client and ClientInterface --- src/Guzzle/Http/Client.php | 15 --------------- src/Guzzle/Http/ClientInterface.php | 10 ---------- 2 files changed, 25 deletions(-) diff --git a/src/Guzzle/Http/Client.php b/src/Guzzle/Http/Client.php index ed4c9d3f..ee983367 100644 --- a/src/Guzzle/Http/Client.php +++ b/src/Guzzle/Http/Client.php @@ -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 * diff --git a/src/Guzzle/Http/ClientInterface.php b/src/Guzzle/Http/ClientInterface.php index 0c0e332c..8a5d2d15 100644 --- a/src/Guzzle/Http/ClientInterface.php +++ b/src/Guzzle/Http/ClientInterface.php @@ -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); }