You are here

interface HttpFoundationFactoryInterface in Zircon Profile 8.0

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

Creates Symfony Request and Response instances from PSR-7 ones.

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

Hierarchy

Expanded class hierarchy of HttpFoundationFactoryInterface

All classes that implement HttpFoundationFactoryInterface

2 files declare their use of HttpFoundationFactoryInterface
HttpFoundationFactory.php in vendor/symfony/psr-http-message-bridge/Factory/HttpFoundationFactory.php
PsrResponseSubscriber.php in core/lib/Drupal/Core/EventSubscriber/PsrResponseSubscriber.php
Contains \Drupal\Core\EventSubscriber\PsrResponseSubscriber.

File

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

Namespace

Symfony\Bridge\PsrHttpMessage
View source
interface HttpFoundationFactoryInterface {

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

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

}

Members

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