1
0

add http client configuration in service; close #29

This commit is contained in:
frostealth
2017-12-01 00:18:28 +06:00
parent 144f72f1a4
commit fd7bb53511

View File

@@ -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()
{
@@ -150,6 +152,14 @@ class Service extends Component implements ServiceInterface
$this->clientConfig['debug'] = $debug;
}
/**
* @param array $options
*/
public function setHttpOptions(array $options)
{
$this->clientConfig['http'] = $options;
}
/**
* @param string|array|object $resolver
*/