Closed (fixed)
Project:
Collect
Version:
8.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jul 2015 at 07:42 UTC
Updated:
6 Aug 2015 at 21:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mbovan commentedIt seems that
createRequest()doesn't returnRequestInterfaceanymore,ResponseInterfaceis returned instead.I had to create a
Requestobject and pass it as a parameter to thesend()method on the http client. Also, request headers are not returned in the same "structure" as response headers which required adapting one to another in order to parse it correctly by theFetchUrlPlugin.Comment #3
mbovan commentedAnd some
CollectClientQueueWorkerchanges and tests fixes. Let's try with this...Comment #5
mbovan commentedIt seems they changed the way how to add headers to the request...
Comment #6
dawehneris there a reason to not use ->post(), it still exists
you could store the variable so if (!$body = $response->getBody())
You don't need to inject the factory in case you don't want to have specific options
Comment #7
mbovan commented@dawehner, thanks for the review.
1. As discussed on irc, the reason was that my PHPStorm didn't find
post()method and that we have an Unit test where we mock Guzzle Http Client, but mockedpost()was not there. :)Anyway, when we mocking an object we can specify the methods which will be mocked too (as second parameter of
getMock()) , so reverted the changes.2. Fixed.
3. Changed to
\GuzzleHttp\ClientInterface.Comment #8
edurenye commentedSeems ok for me.
Comment #9
juanse254 commentedUnrelated empty lines
Delete extra empty space.
Comment #10
juanse254 commentedEmpty Line
Remove unrelated empty line
Didnt notice they were not being shown, my bad.
Comment #11
mbovan commentedRe #9 (1), #10 (1):
When you highlight only one (empty) line, it's hard to find which one you thought about. Also, you can edit your comment because #10 is the same as #9 (1). :)
Reverted the changes.
Re #9 (2):
Actually, one empty space is missing here. Added it.
Comment #13
berdirCommitted.