for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DMT\Aura\Psr\Factory;
use DMT\Aura\Psr\Message\Request;
use Psr\Http\Message\RequestFactoryInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\UriInterface;
/**
* Class RequestFactory
*
* @package DMT\Aura\Psr\Factory
*/
class RequestFactory implements RequestFactoryInterface
{
* Create a new request.
* @param string $method The HTTP method associated with the request.
* @param UriInterface|string $uri The URI associated with the request. If
* the value is a string, the factory MUST create a UriInterface
* instance based on it.
* @return RequestInterface
public function createRequest(string $method, $uri): RequestInterface
return new Request($method, $uri);
}