From 6ceb830f7c765425adc628ad84a443a2a8edfc53 Mon Sep 17 00:00:00 2001 From: Jasper Zonneveld Date: Mon, 30 Aug 2021 11:41:23 +0200 Subject: [PATCH] Revert "Use Http\Discovery\Psr17FactoryDiscovery for discovery" This reverts commit 0f7eee3b3ecdc9428b1cbd9046a31ad401a02801. --- src/ResponseBuilder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ResponseBuilder.php b/src/ResponseBuilder.php index a9a9662..1c988b6 100644 --- a/src/ResponseBuilder.php +++ b/src/ResponseBuilder.php @@ -2,7 +2,7 @@ namespace Swis\Http\Fixture; -use Http\Discovery\Psr17FactoryDiscovery; +use Http\Discovery\MessageFactoryDiscovery; use Http\Message\ResponseFactory; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; @@ -54,7 +54,7 @@ public function __construct(string $fixturesPath, array $domainAliases = [], Res { $this->fixturesPath = $fixturesPath; $this->domainAliases = $domainAliases; - $this->responseFactory = $responseFactory ?: Psr17FactoryDiscovery::findResponseFactory(); + $this->responseFactory = $responseFactory ?: MessageFactoryDiscovery::find(); } /**