Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ResponseFactoryInterface.php

interface ResponseFactoryInterface

Hierarchy

  • interface \Psr\Http\Message\ResponseFactoryInterface

Expanded class hierarchy of ResponseFactoryInterface

All classes that implement ResponseFactoryInterface

11 files declare their use of ResponseFactoryInterface
CommonPsr17ClassesStrategy.php in vendor/php-http/discovery/src/Strategy/CommonPsr17ClassesStrategy.php
DependencyResolver.php in vendor/open-telemetry/sdk/Common/Adapter/HttpDiscovery/DependencyResolver.php
FactoryResolverInterface.php in vendor/open-telemetry/sdk/Common/Http/Psr/Message/FactoryResolverInterface.php
HttpFactory.php in vendor/guzzlehttp/psr7/src/HttpFactory.php
MessageFactory.php in vendor/open-telemetry/sdk/Common/Http/Psr/Message/MessageFactory.php

... See full list

File

vendor/psr/http-factory/src/ResponseFactoryInterface.php, line 5

Namespace

Psr\Http\Message
View source
interface ResponseFactoryInterface {
    
    /**
     * Create a new response.
     *
     * @param int $code HTTP status code; defaults to 200
     * @param string $reasonPhrase Reason phrase to associate with status code
     *     in generated response; if none is provided implementations MAY use
     *     the defaults as suggested in the HTTP specification.
     *
     * @return ResponseInterface
     */
    public function createResponse(int $code = 200, string $reasonPhrase = '') : ResponseInterface;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
ResponseFactoryInterface::createResponse public function Create a new response. 2

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal