Closed romainneutron closed 8 years ago
If we are going to switch to guzzle, it might be an idea to switch to guzzle 4, not the older guzzle 3?
Guzzle 4 requires PHP 5.4 and can live along Guzzle 3
I don't think it's mandatory. As we use guzzle in this PR, upgrade to Guzzle 4 in the future should be very easy
Romain
On 10 juil. 2014, at 22:35, Graham Campbell notifications@github.com wrote:
If we are going to switch to guzzle, it might be an idea to switch to guzzle 4, not the older guzzle 3.
— Reply to this email directly or view it on GitHub.
We need to address few things I'm not really sure (Api::submit method is deprecated in favor of Api::get and Api::post. Does other method are in use ? patch ? head ? So we probably should rename it to createRequest and rovide a BC. I definitely don't like the submit word :) )
Your BC layer is enough.
Should we introduce the user agent in this library ?
good idea. P
BTW, did you see #28 ?
Woops, no, I have not seen it. Another idea I had while riding on my bike : what about using Guzzle HttpCache Plugin. Does the connect API provide cache headers ?
I had a look at #28, I solved the issue you mentioned there by disabling Guzzle exceptions, see https://github.com/romainneutron/connect/blob/guzzle/src/SensioLabs/Connect/Api/Api.php#L77 (doc is at https://github.com/guzzle/guzzle3/blob/master/src/Guzzle/Http/Message/RequestFactoryInterface.php#L69-L102)
Whoo! Nice, @romainneutron ! :)
Woops, no, I have not seen it. Another idea I had while riding on my bike : what about using Guzzle HttpCache Plugin. Does the connect API provide cache headers ?
IIRC no except for few undocumented and very internal resources.
@romainneutron Update to guzzle 4 is not as transparent as you think. The interfaces have changed completely, and the methods signatures are completely different.
Shall we close?
Yes. Actually, guzzle versioning is so boring, let's stay on buzz !
The PR is ready, anyway I tag it as wip because:
submit
word :) )browser
toclient
err
is not a valid method)