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

Breadcrumb

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

interface ServerRequestFactoryInterface

Hierarchy

  • interface \Psr\Http\Message\ServerRequestFactoryInterface

Expanded class hierarchy of ServerRequestFactoryInterface

All classes that implement ServerRequestFactoryInterface

12 files declare their use of ServerRequestFactoryInterface
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/ServerRequestFactoryInterface.php, line 5

Namespace

Psr\Http\Message
View source
interface ServerRequestFactoryInterface {
    
    /**
     * Create a new server request.
     *
     * Note that server-params are taken precisely as given - no parsing/processing
     * of the given values is performed, and, in particular, no attempt is made to
     * determine the HTTP method or URI, which must be provided explicitly.
     *
     * @param string $method The HTTP method associated with the request.
     * @param UriInterface|string $uri The URI associated with the request. If
     *     the value is a string, the factory MUST create a UriInterface
     *     instance based on it.
     * @param array $serverParams Array of SAPI parameters with which to seed
     *     the generated request instance.
     *
     * @return ServerRequestInterface
     */
    public function createServerRequest(string $method, $uri, array $serverParams = []) : ServerRequestInterface;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
ServerRequestFactoryInterface::createServerRequest public function Create a new server request. 2

API Navigation

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