4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Bridge\PsrHttpMessage;
14 use Psr\Http\Message\ServerRequestInterface;
15 use Psr\Http\Message\ResponseInterface;
16 use Symfony\Component\HttpFoundation\Request;
17 use Symfony\Component\HttpFoundation\Response;
20 * Creates Symfony Request and Response instances from PSR-7 ones.
22 * @author Kévin Dunglas <dunglas@gmail.com>
24 interface HttpFoundationFactoryInterface
27 * Creates a Symfony Request instance from a PSR-7 one.
29 * @param ServerRequestInterface $psrRequest
33 public function createRequest(ServerRequestInterface $psrRequest);
36 * Creates a Symfony Response instance from a PSR-7 one.
38 * @param ResponseInterface $psrResponse
42 public function createResponse(ResponseInterface $psrResponse);