wishthis/vendor/laminas/laminas-diactoros/src/RequestFactory.php
2021-11-15 14:21:18 +01:00

19 lines
376 B
PHP

<?php
declare(strict_types=1);
namespace Laminas\Diactoros;
use Psr\Http\Message\RequestFactoryInterface;
use Psr\Http\Message\RequestInterface;
class RequestFactory implements RequestFactoryInterface
{
/**
* {@inheritDoc}
*/
public function createRequest(string $method, $uri) : RequestInterface
{
return new Request($uri, $method);
}
}