Skip to content

Commit

Permalink
adding factory
Browse files Browse the repository at this point in the history
  • Loading branch information
stovak committed Jan 27, 2025
1 parent 4837a78 commit 60c43b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Services/PantheonGuzzle.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Drupal\search_api_pantheon\Services;

use GuzzleHttp\Psr7\HttpFactory;
use Drupal\search_api_pantheon\Traits\EndpointAwareTrait;
use GuzzleHttp\Client;
use GuzzleHttp\Handler\CurlHandler;
Expand Down Expand Up @@ -172,10 +173,11 @@ public function requestUriAlterForPantheonEnvironment(RequestInterface $request)
* The interface in question.
*/
public function getAdapter(): AdapterInterface {
$factory = new HttpFactory();
return new Psr18Adapter(
$this,
new RequestFactory(),
new StreamFactory()
$factory,
$factory,
);
}

Expand Down

0 comments on commit 60c43b3

Please sign in to comment.