Change Log, Plugin and Cache namespace for Guzzle 3.x#14
Change Log, Plugin and Cache namespace for Guzzle 3.x#14carlos-granados wants to merge 4 commits intoddeboer:masterfrom
Conversation
|
Thanks! I've gone ahead and tagged 1.0.0 of this bundle so that people can still use Guzzle 2. I've also created a guzzle2 branch so that the Guzzle 2.x series of the bundle can be maintained. I'll let @gimler or someone more familiar with this bundle take a look at this PR. |
|
ping @gimler |
|
sorry i will try to check that PR this week |
|
Hi @barelon, I'm using Guzzle 3 is it ok to pull your patch? BTW the GuzzleBundle documentation states that I should create a webservices.xml file, which I've done. However Guzzle 3 only appears to support "JSON or PHP files that return an array when included", taken from the code Guzzle/Service/AbstractConfigLoader.php. The bundle appears not to work for Guzzle 3 throwing an InvalidArgumentException 'Unknown file extension'. zerkalica's "Symfony native configuration support" looks good but it is in the Guzzle2 branch.. Do you have a workaround for these issues? Matthew |
|
@barelon - Thanks for the patch! |
|
For those interested this is good: https://github.com/misd-service-development/guzzle-bundle |
In Guzzle 3.x the Log classes have been moved from Guzzle\Common\Log to Guzzle\Log, the Cache classes have been moved from Guzzle\Common\Cache to Guzzle\Cache and the Plugin classes have been moved from Guzzle\Http\Plugin to Guzzle\Plugin
Additionally, the CollectionPlugin has been removed and plugins have to be added individually
Edited two files to reflect this change