for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <[email protected]>
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
* Implementation of this file has been influenced by Zend Diactoros
* @link https://github.com/zendframework/zend-diactoros
* @license https://github.com/zendframework/zend-diactoros/blob/master/LICENSE.md
*/
declare(strict_types=1);
namespace Phalcon\Http\Message;
use Psr\Http\Message\RequestFactoryInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\UriInterface;
* PSR-17 RequestFactory
final class RequestFactory implements RequestFactoryInterface
{
* Create a new request.
* @param string $method
* @param UriInterface|string|null $uri
* @return RequestInterface
public function createRequest(string $method, $uri): RequestInterface
return new Request($method, $uri);
}