blob: cb53457707826898e8bff8aaa26317e35514e5bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
/**
* High-performance PHP process supervisor and load balancer written in Go
*
* @author Wolfy-J
*/
declare(strict_types=1);
namespace Spiral\RoadRunner\Diactoros;
use Psr\Http\Message\ServerRequestFactoryInterface;
use Psr\Http\Message\ServerRequestInterface;
use Zend\Diactoros\ServerRequest;
final class ServerRequestFactory implements ServerRequestFactoryInterface
{
/**
* @inheritdoc
*/
public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface
{
$uploadedFiles = [];
return new ServerRequest($serverParams, $uploadedFiles, $uri, $method);
}
}
|