forked from LiveCarta/yii2-aws-s3
add http client configuration in service; close #29
This commit is contained in:
@@ -45,6 +45,8 @@ class Service extends Component implements ServiceInterface
|
|||||||
* Initializes the object.
|
* Initializes the object.
|
||||||
* This method is invoked at the end of the constructor after the object is initialized with the
|
* This method is invoked at the end of the constructor after the object is initialized with the
|
||||||
* given configuration.
|
* given configuration.
|
||||||
|
*
|
||||||
|
* @throws InvalidConfigException
|
||||||
*/
|
*/
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
@@ -150,6 +152,14 @@ class Service extends Component implements ServiceInterface
|
|||||||
$this->clientConfig['debug'] = $debug;
|
$this->clientConfig['debug'] = $debug;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $options
|
||||||
|
*/
|
||||||
|
public function setHttpOptions(array $options)
|
||||||
|
{
|
||||||
|
$this->clientConfig['http'] = $options;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string|array|object $resolver
|
* @param string|array|object $resolver
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user