Skip to content

Commit

Permalink
Merge pull request #76 from openeuropa/EWPP-2993
Browse files Browse the repository at this point in the history
EWPP-2993: Allow to install with Drupal 10.
  • Loading branch information
brummbar authored Apr 5, 2023
2 parents 75b6961 + 9dbdcad commit a821ca7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
22 changes: 12 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,30 @@
"prefer-stable": true,
"require": {
"php": ">=8.0",
"ext-json": "*",
"ext-fileinfo": "*",
"ext-json": "*",
"league/container": "^3.3",
"php-http/multipart-stream-builder": "^1.1",
"phpdocumentor/reflection-docblock": "^5.2",
"phpdocumentor/type-resolver": "^1.4",
"psr/http-client": "^1.0",
"psr/http-client-implementation": "*",
"psr/http-factory": "^1.0",
"symfony/options-resolver": "^4.4.30 || ^5",
"symfony/property-info": "^4.4",
"symfony/serializer": "^4.4"
"psr/http-factory-implementation": "*",
"symfony/options-resolver": "^4.4.30 || ^5 || ^6.2",
"symfony/property-access": "^4.4 || ^6.2",
"symfony/property-info": "^4.4 || ^6.2",
"symfony/serializer": "^4.4 || ^6.2"
},
"require-dev": {
"guzzlehttp/psr7": "^1.8",
"http-interop/http-factory-guzzle": "^1.0",
"openeuropa/code-review": "2.x-dev",
"php-http/guzzle7-adapter": "^1.0",
"guzzlehttp/guzzle": "^7",
"guzzlehttp/psr7": "^2",
"openeuropa/code-review": "^2.0.0-alpha6",
"phpunit/phpunit": "^9.4"
},
"suggest": {
"http-interop/http-factory-guzzle": "PSR-17 HTTP Factories implementation for Guzzle",
"php-http/guzzle7-adapter": "PSR-18 HTTP Client implementation for Guzzle"
"guzzlehttp/guzzle": "PSR-18 HTTP Client implementation",
"guzzlehttp/psr7": "PSR-17 HTTP Factories implementation"
},
"autoload": {
"psr-4": {
Expand Down
11 changes: 5 additions & 6 deletions tests/src/Traits/ClientTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\Middleware;
use Http\Factory\Guzzle\RequestFactory;
use Http\Factory\Guzzle\StreamFactory;
use Http\Factory\Guzzle\UriFactory;
use GuzzleHttp\Psr7\HttpFactory;
use OpenEuropa\EuropaSearchClient\Client;
use OpenEuropa\EuropaSearchClient\Contract\ClientInterface;

Expand All @@ -31,11 +29,12 @@ protected function getTestingClient(array $configuration = [], array $responseQu
$handlerStack = HandlerStack::create(new MockHandler($responseQueue));
$handlerStack->push(Middleware::history($this->clientHistory));

$httpFactory = new HttpFactory();
return new Client(
new HttpClient(['handler' => $handlerStack]),
new RequestFactory(),
new StreamFactory(),
new UriFactory(),
$httpFactory,
$httpFactory,
$httpFactory,
$configuration
);
}
Expand Down

0 comments on commit a821ca7

Please sign in to comment.