Ejemplo n.º 1
0
 public function setDefaultOption($keyOrPath, $value)
 {
     \GuzzleHttp\set_path($this->defaults, $keyOrPath, $value);
 }
Ejemplo n.º 2
0
 /**
  * Set a value into a nested array key. Keys will be created as needed to
  * set the value.
  *
  * @param string $path  Path to set
  * @param mixed  $value Value to set at the key
  *
  * @throws \RuntimeException when trying to setPath using a nested path
  *     that travels through a scalar value
  */
 public function setPath($path, $value)
 {
     \GuzzleHttp\set_path($this->data, $path, $value);
 }
Ejemplo n.º 3
0
 /**
  * Setter for individual configuration option
  * @param  string $keyOrPath
  * @param  mixed  $value
  * @return $this
  */
 public function setOption($keyOrPath, $value)
 {
     \GuzzleHttp\set_path($this->config, $keyOrPath, $value);
     return $this;
 }