Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe ServerRequestFactory
+ Graphe d'héritage de ServerRequestFactory:

Fonctions membres publiques

 createServerRequest (string $method, $uri, array $serverParams=[])
 

Fonctions membres publiques statiques

static fromGlobals (array $server=null, array $query=null, array $body=null, array $cookies=null, array $files=null)
 

Attributs privés statiques

static $apacheRequestHeaders = 'apache_request_headers'
 

Description détaillée

Class for marshaling a request object from the current PHP environment.

Logic largely refactored from the Laminas Laminas class.

Documentation des fonctions membres

◆ createServerRequest()

createServerRequest ( string  $method,
  $uri,
array  $serverParams = [] 
)

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ètres
string$methodThe HTTP method associated with the request.
UriInterface | string$uriThe URI associated with the request. If the value is a string, the factory MUST create a UriInterface instance based on it.
array$serverParamsArray of SAPI parameters with which to seed the generated request instance.
Renvoie
ServerRequestInterface

Implémente ServerRequestFactoryInterface.

Références Laminas\Diactoros\$method, et Laminas\Diactoros\$uri.

◆ fromGlobals()

static fromGlobals ( array  $server = null,
array  $query = null,
array  $body = null,
array  $cookies = null,
array  $files = null 
)
static

Create a request from the supplied superglobal values.

If any argument is not supplied, the corresponding superglobal value will be used.

The ServerRequest created is then passed to the fromServer() method in order to marshal the request URI and headers.

Voir également
fromServer()
Paramètres
array$server$_SERVER superglobal
array$query$_GET superglobal
array$body$_POST superglobal
array$cookies$_COOKIE superglobal
array$files$_FILES superglobal
Renvoie
ServerRequest

Références $query, Laminas\Diactoros\marshalHeadersFromSapi(), Laminas\Diactoros\marshalMethodFromSapi(), Laminas\Diactoros\marshalProtocolVersionFromSapi(), Laminas\Diactoros\marshalUriFromSapi(), Laminas\Diactoros\normalizeServer(), Laminas\Diactoros\normalizeUploadedFiles(), null, et Laminas\Diactoros\parseCookieHeader().

Référencé par Authentication\validateAssertionResponse(), et Credentials\verifyAttestation().

Documentation des champs

◆ $apacheRequestHeaders

$apacheRequestHeaders = 'apache_request_headers'
staticprivate

La documentation de cette classe a été générée à partir du fichier suivant :