equal
deleted
inserted
replaced
4 use EasyRdf\Sparql\Client; |
4 use EasyRdf\Sparql\Client; |
5 use EasyRdf\Sparql\Result; |
5 use EasyRdf\Sparql\Result; |
6 use EasyRdf\Exception; |
6 use EasyRdf\Exception; |
7 use EasyRdf\Format; |
7 use EasyRdf\Format; |
8 use EasyRdf\RdfNamespace; |
8 use EasyRdf\RdfNamespace; |
|
9 use GuzzleHttp\Client as GuzzleClient; |
9 |
10 |
10 /** |
11 /** |
11 * Wraps a Guzzle psr7 response into a EasyRdf\Http\Response interface |
12 * Wraps a Guzzle psr7 response into a EasyRdf\Http\Response interface |
12 **/ |
13 **/ |
13 class ResponseWrapper { |
14 class ResponseWrapper { |
191 } |
192 } |
192 } |
193 } |
193 |
194 |
194 class GuzzleSparqlClient extends Client { |
195 class GuzzleSparqlClient extends Client { |
195 |
196 |
196 public function __construct($httpClient, $queryUri, $updateUri = null) { |
197 public function __construct(GuzzleClient $httpClient, $queryUri, $updateUri = null) { |
197 parent::__construct($queryUri, $updateUri); |
198 parent::__construct($queryUri, $updateUri); |
198 $this->httpClient = $httpClient; |
199 $this->httpClient = $httpClient; |
199 } |
200 } |
200 |
201 |
201 private function queryUriHasParams() { |
202 private function queryUriHasParams() { |