RequestWrapper

class \TYPO3\CMS\Core\ExpressionLanguage\RequestWrapper

Class RequestWrapper This class provides access to some methods of the ServerRequest object.

To prevent access to all methods of the ServerRequest object within conditions, this class was introduced to control which methods are exposed.

Additionally this class can be used to simulate a request for condition matching in case the condition matcher calls should be simulated (for example simulating parsing of TypoScript on CLI)

Table of Contents

Properties

$request  : ServerRequestInterface

Methods

__construct()  : mixed
getCookieParams()  : array
getHeaders()  : array
getNormalizedParams()  : NormalizedParams|null
getPageArguments()  : RouteResultInterface|null
getParsedBody()  : array
getQueryParams()  : array
getSite()  : SiteInterface|null
getSiteLanguage()  : SiteLanguage|null

Properties

$request

protected ServerRequestInterface $request

Methods

__construct()

public __construct(ServerRequestInterface|null $request) : mixed

Parameters

$request : ServerRequestInterface|null

getCookieParams()

public getCookieParams() : array

Return values

array

getHeaders()

public getHeaders() : array

Return values

array

getParsedBody()

public getParsedBody() : array

Return values

array

getQueryParams()

public getQueryParams() : array

Return values

array
On this page