DeprecatingRequestWrapper
class \
- Extends
- RequestWrapper
Some scopes - especially fetching page TSconfig do not have a Request, for instance when the DataHandler needs page TSconfig of a page. As such, using conditions based on Request data is problematic for user TSconfig and page TSconfig.
Deprecated
since v12, will be removed in v13. Remove in UserTsConfigFactory and PageTsConfigFactory as well!
This was working in v11, though. To deprecate this case, we provide the 'request' variable through this DeprecatingRequestWrapper and log usages.
Internal
Table of Contents
Properties
- $request : ServerRequestInterface
Methods
- __construct() : mixed
- getCookieParams() : array
- getHeaders() : array
- getNormalizedParams() : NormalizedParams|null
- getPageArguments() : PageArguments|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
arraygetHeaders()
public
getHeaders() : array
Return values
arraygetNormalizedParams()
public
getNormalizedParams() : NormalizedParams|null
Return values
NormalizedParams|nullgetPageArguments()
public
getPageArguments() : PageArguments|null
Return values
PageArguments|nullgetParsedBody()
public
getParsedBody() : array
Return values
arraygetQueryParams()
public
getQueryParams() : array
Return values
arraygetSite()
public
getSite() : SiteInterface|null
Tags
Return values
SiteInterface|nullgetSiteLanguage()
public
getSiteLanguage() : SiteLanguage|null