Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
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' |
Class for marshaling a request object from the current PHP environment.
Logic largely refactored from the Laminas Laminas class.
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.
string | $method | The HTTP method associated with the request. |
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. |
array | $serverParams | Array of SAPI parameters with which to seed the generated request instance. |
Implémente ServerRequestFactoryInterface.
Références Laminas\Diactoros\$method, et Laminas\Diactoros\$uri.
|
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.
array | $server | $_SERVER superglobal |
array | $query | $_GET superglobal |
array | $body | $_POST superglobal |
array | $cookies | $_COOKIE superglobal |
array | $files | $_FILES superglobal |
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().
|
staticprivate |