ServerRequestInstruction

class \TYPO3\CMS\Backend\Security\SudoMode\Access\ServerRequestInstruction

Implements
JsonSerializable

Reduced representation of `ServerRequest` information, which is used to replay the intercepted request later, once access was granted.

Table of Contents

Interfaces

JsonSerializable

Constants

KEEP_ATTRIBUTE_NAMES  : mixed = ['applicationType']
Attribute names that shall be taken from the original request

Properties

$attributes  : array
$body  : StreamInterface
$headers  : array
$method  : string
$parsedBody  : array|null
$queryParams  : array
$requestTarget  : string
$serverParams  : array
$uri  : UriInterface

Methods

applyTo()  : ServerRequestInterface
Applies instructions to given ServerRequest ("replaying the request").
buildFromArray()  : self
createForServerRequest()  : self
getAttributes()  : array
getBody()  : StreamInterface
getHeaders()  : array
getMethod()  : string
getParsedBody()  : array|null
getQueryParams()  : array
getRequestTarget()  : string
getServerParams()  : array
getUri()  : UriInterface
jsonSerialize()  : array
__clone()  : mixed
__construct()  : mixed
clone()  : mixed

Constants

KEEP_ATTRIBUTE_NAMES

Attribute names that shall be taken from the original request

protected mixed KEEP_ATTRIBUTE_NAMES = ['applicationType']

Properties

$parsedBody

protected array|null $parsedBody

$requestTarget

protected string $requestTarget

$serverParams

protected array $serverParams

Methods

applyTo()

Applies instructions to given ServerRequest ("replaying the request").

public applyTo(ServerRequestInterface $request) : ServerRequestInterface

Parameters

$request : ServerRequestInterface

Return values

ServerRequestInterface

buildFromArray()

public static buildFromArray(array $data) : self

Parameters

$data : array

Return values

self

createForServerRequest()

public static createForServerRequest(ServerRequestInterface $request) : self

Parameters

$request : ServerRequestInterface

Return values

self

getAttributes()

public getAttributes() : array

Return values

array

getBody()

public getBody() : StreamInterface

Return values

StreamInterface

getHeaders()

public getHeaders() : array

Return values

array

getMethod()

public getMethod() : string

Return values

string

getParsedBody()

public getParsedBody() : array|null

Return values

array|null

getQueryParams()

public getQueryParams() : array

Return values

array

getRequestTarget()

public getRequestTarget() : string

Return values

string

getServerParams()

public getServerParams() : array

Return values

array

getUri()

public getUri() : UriInterface

Return values

UriInterface

jsonSerialize()

public jsonSerialize() : array

Return values

array

__construct()

protected __construct() : mixed

clone()

protected static clone(mixed $value) : mixed

Parameters

$value : mixed
On this page