-
Notifications
You must be signed in to change notification settings - Fork 272
Added the ability to set options for guzzle #965
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Status: Needs work.
*/ | ||
public function __construct( | ||
$certificatePath = Resources::EMPTY_STRING, | ||
$certificateAuthorityPath = Resources::EMPTY_STRING | ||
$certificateAuthorityPath = Resources::EMPTY_STRING, | ||
$options = array() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, declare the argument type.
@@ -127,6 +129,8 @@ public function __construct( | |||
|
|||
$this->_requestUrl = null; | |||
$this->_expectedStatusCodes = []; | |||
|
|||
$this->_config = array_merge($this->_config, $options); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could the provided options be validated before hydrating $this->_config
? (by instance, with an options resolver). BTW, if they are intended to be an associative array, +
operator could be used instead of calling array_merge()
.
* @return IHttpClient | ||
*/ | ||
protected function httpClient() | ||
protected function httpClient($options = array()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, this is a BC break (the method is extensible).
@@ -216,13 +218,13 @@ public function createTableService($connectionString) | |||
* | |||
* @return IServiceBus | |||
*/ | |||
public function createServiceBusService($connectionString) | |||
public function createServiceBusService($connectionString, $options = array()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, this is a BC break (the method is extensible).
No description provided.