-
Notifications
You must be signed in to change notification settings - Fork 42
Conversation
@harikt Can you please add tests for:
Also, I'd move the validation of the client against known types to |
My assumption is you are thinking of public static function setHttpClient($httpClient)
{
if (! $httpClient instanceof ZendHttp\Client || ! $httpClient instanceof ClientInterface) {
throw InvalidClientException();
}
static::$httpClient = $httpClient;
} If this is what you are thinking with validation, I did thought about it, but wonder if that change will bring any other issues to the sem version . Thank you. |
@weierophinney update with the changes asked. Thank you. |
any thoughts on this ? |
@harikt I'm reviewing this now, and feel it isn't going far enough. :) Essentially, what I think we need to do is as follows:
These changes would make it more robust and forwards-compatible, I think, and very likely make it easier to create bridge implementations for other clients. Question, @harikt — do you want to tackle these changes, or should I create a new PR incorporating this one to do it? |
@weierophinney sure. Feel free to take this for I don't know when I can find some time to make the changes. If I noticed you haven't started and I am free, I will try to bring the PR. Thank you. |
@harikt HA! we already have I'm starting work on this immediately. |
Lets allow users to set the HttpClient,
Closing in favor of #14, which extends the code introduced in this pull request with the featureset in my above comments. |
Which helps to make use of other methods .
Eg :
findFeeds
for I am using guzzle as http client.