You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 lines
1.1 KiB

  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Bridge\PsrHttpMessage;
  11. use Psr\Http\Message\ResponseInterface;
  12. use Psr\Http\Message\ServerRequestInterface;
  13. use Symfony\Component\HttpFoundation\Request;
  14. use Symfony\Component\HttpFoundation\Response;
  15. /**
  16. * Creates Symfony Request and Response instances from PSR-7 ones.
  17. *
  18. * @author Kévin Dunglas <dunglas@gmail.com>
  19. */
  20. interface HttpFoundationFactoryInterface
  21. {
  22. /**
  23. * Creates a Symfony Request instance from a PSR-7 one.
  24. *
  25. * @param ServerRequestInterface $psrRequest
  26. *
  27. * @return Request
  28. */
  29. public function createRequest(ServerRequestInterface $psrRequest);
  30. /**
  31. * Creates a Symfony Response instance from a PSR-7 one.
  32. *
  33. * @param ResponseInterface $psrResponse
  34. *
  35. * @return Response
  36. */
  37. public function createResponse(ResponseInterface $psrResponse);
  38. }