Skip to content

Commit

Permalink
implement request factory
Browse files Browse the repository at this point in the history
  • Loading branch information
verfriemelt-dot-org committed Nov 21, 2024
1 parent 56afdf2 commit d86f8eb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions _/HttpClient/Psr/RequestFactory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

declare(strict_types=1);

namespace verfriemelt\wrapped\_\HttpClient\Psr;

use Psr\Http\Message\RequestFactoryInterface;
use Psr\Http\Message\RequestInterface;
use Override;

final class RequestFactory implements RequestFactoryInterface
{
#[Override]
public function createRequest(string $method, $uri): RequestInterface
{
return new Request($method, $uri);
}
}

0 comments on commit d86f8eb

Please sign in to comment.