Skip to content

Commit

Permalink
Revert "Use Http\Discovery\Psr17FactoryDiscovery for discovery"
Browse files Browse the repository at this point in the history
This reverts commit 0f7eee3.
  • Loading branch information
JaZo committed Aug 30, 2021
1 parent 205e16e commit 6ceb830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ResponseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 6ceb830

Please sign in to comment.