|
11 | 11 | */ |
12 | 12 |
|
13 | 13 | use GuzzleHttp\Client; |
| 14 | +use GuzzleHttp\Psr7\Uri; |
14 | 15 | use Neos\Cache\Exception\InvalidDataException; |
15 | 16 | use Neos\Cache\Frontend\StringFrontend; |
16 | 17 | use Neos\Flow\Annotations as Flow; |
17 | 18 | use Neos\Flow\Http\Helper\UriHelper; |
18 | | -use Neos\Flow\Http\Uri; |
19 | 19 | use Netlogix\JsonApiOrg\Consumer\Domain\Model\Arguments\PageInterface; |
20 | 20 | use Netlogix\JsonApiOrg\Consumer\Domain\Model\Arguments\SortInterface; |
21 | 21 | use Netlogix\JsonApiOrg\Consumer\Domain\Model\ResourceProxy; |
22 | 22 | use Netlogix\JsonApiOrg\Consumer\Domain\Model\ResourceProxyIterator; |
23 | 23 | use Netlogix\JsonApiOrg\Consumer\Domain\Model\Type; |
24 | 24 | use Netlogix\JsonApiOrg\Consumer\Guzzle\ClientProvider; |
| 25 | +use Psr\Http\Message\UriInterface; |
25 | 26 |
|
26 | 27 | /** |
27 | 28 | * @Flow\Scope("singleton") |
@@ -83,11 +84,11 @@ public function getType($typeName) |
83 | 84 | } |
84 | 85 |
|
85 | 86 | /** |
86 | | - * @param Uri $endpointDiscovery |
| 87 | + * @param UriInterface $endpointDiscovery |
87 | 88 | * @throws InvalidDataException |
88 | 89 | * @throws \Neos\Cache\Exception |
89 | 90 | */ |
90 | | - public function registerEndpointsByEndpointDiscovery(Uri $endpointDiscovery) |
| 91 | + public function registerEndpointsByEndpointDiscovery(UriInterface $endpointDiscovery) |
91 | 92 | { |
92 | 93 | $result = $this->requestJson($endpointDiscovery); |
93 | 94 | foreach ($result['links'] as $link) { |
@@ -180,12 +181,12 @@ public function getQueryUriForFindByTypeAndFilter( |
180 | 181 | } |
181 | 182 |
|
182 | 183 | /** |
183 | | - * @param Uri $queryUri |
| 184 | + * @param UriInterface $queryUri |
184 | 185 | * @return ResourceProxyIterator |
185 | 186 | * @throws InvalidDataException |
186 | 187 | * @throws \Neos\Cache\Exception |
187 | 188 | */ |
188 | | - public function fetchFromUri(Uri $queryUri) |
| 189 | + public function fetchFromUri(UriInterface $queryUri) |
189 | 190 | { |
190 | 191 | $resourceProxy = ResourceProxyIterator::fromUri($queryUri); |
191 | 192 | $resourceProxy = $resourceProxy->loadFromCache(); |
|
0 commit comments