You are here

interface HttpMessageFactoryInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/psr-http-message-bridge/HttpMessageFactoryInterface.php \Symfony\Bridge\PsrHttpMessage\HttpMessageFactoryInterface

Creates PSR HTTP Request and Response instances from Symfony ones.

@author Kévin Dunglas <dunglas@gmail.com>

Hierarchy

Expanded class hierarchy of HttpMessageFactoryInterface

All classes that implement HttpMessageFactoryInterface

2 files declare their use of HttpMessageFactoryInterface
ControllerResolver.php in core/lib/Drupal/Core/Controller/ControllerResolver.php
Contains \Drupal\Core\Controller\ControllerResolver.
DiactorosFactory.php in vendor/symfony/psr-http-message-bridge/Factory/DiactorosFactory.php

File

vendor/symfony/psr-http-message-bridge/HttpMessageFactoryInterface.php, line 24

Namespace

Symfony\Bridge\PsrHttpMessage
View source
interface HttpMessageFactoryInterface {

  /**
   * Creates a PSR-7 Request instance from a Symfony one.
   *
   * @param Request $symfonyRequest
   *
   * @return ServerRequestInterface
   */
  public function createRequest(Request $symfonyRequest);

  /**
   * Creates a PSR-7 Response instance from a Symfony one.
   *
   * @param Response $symfonyResponse
   *
   * @return ResponseInterface
   */
  public function createResponse(Response $symfonyResponse);

}

Members

Namesort descending Modifiers Type Description Overrides
HttpMessageFactoryInterface::createRequest public function Creates a PSR-7 Request instance from a Symfony one. 1
HttpMessageFactoryInterface::createResponse public function Creates a PSR-7 Response instance from a Symfony one. 1