Skip to content

Commit

Permalink
add http client configuration in service; close frostealth#29
Browse files Browse the repository at this point in the history
  • Loading branch information
frostealth committed Nov 30, 2017
1 parent 144f72f commit fd7bb53
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ class Service extends Component implements ServiceInterface
* Initializes the object.
* This method is invoked at the end of the constructor after the object is initialized with the
* given configuration.
*
* @throws InvalidConfigException
*/
public function init()
{
Expand Down Expand Up @@ -150,6 +152,14 @@ public function setDebug($debug)
$this->clientConfig['debug'] = $debug;
}

/**
* @param array $options
*/
public function setHttpOptions(array $options)
{
$this->clientConfig['http'] = $options;
}

/**
* @param string|array|object $resolver
*/
Expand Down

0 comments on commit fd7bb53

Please sign in to comment.