Supports Guzzle6

* Removed `json` method in favor of `getBody` that is supported by all
   guzzle versions
 * Removed composer.lock (useless for libraries)
This commit is contained in:
Walter Dal Mut
2015-07-29 16:53:31 +02:00
parent 361703cb25
commit 745ff3a5eb
4 changed files with 3 additions and 2126 deletions
+1
View File
@@ -1,2 +1,3 @@
vendor
tags
composer.lock
+1 -1
View File
@@ -4,7 +4,7 @@
"description": "Send your app metrics to InfluxDB",
"require": {
"php": ">=5.4",
"guzzlehttp/guzzle": "~4|~5",
"guzzlehttp/guzzle": "~4|~5|~6",
"zendframework/zend-stdlib": "~2",
"zendframework/zend-filter": "~2",
"zendframework/zend-servicemanager": "~2"
Generated
-2124
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -52,7 +52,7 @@ class GuzzleAdapter extends AdapterAbstract implements QueryableInterface
private function get(array $httpMessage)
{
$endpoint = $this->getHttpQueryEndpoint();
return $this->httpClient->get($endpoint, $httpMessage)->json();
return json_decode($this->httpClient->get($endpoint, $httpMessage)->getBody(), true);
}
protected function getHttpSeriesEndpoint()