酒店预订平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

40 行
990 B

  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 PSR HTTP Request and Response instances from Symfony ones.
  17. *
  18. * @author Kévin Dunglas <dunglas@gmail.com>
  19. */
  20. interface HttpMessageFactoryInterface
  21. {
  22. /**
  23. * Creates a PSR-7 Request instance from a Symfony one.
  24. *
  25. * @return ServerRequestInterface
  26. */
  27. public function createRequest(Request $symfonyRequest);
  28. /**
  29. * Creates a PSR-7 Response instance from a Symfony one.
  30. *
  31. * @return ResponseInterface
  32. */
  33. public function createResponse(Response $symfonyResponse);
  34. }