TestRequest
OAuth2\Request This class is taken from the Symfony2 Framework and is part of the Symfony package.
- Full name:
\OAuth2\Request\TestRequest
- Parent class:
\OAuth2\Request
- This class implements:
\OAuth2\RequestInterface
Properties
query
request
server
headers
Methods
__construct
Constructor.
query
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
mixed | |
$default |
mixed |
request
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
mixed | |
$default |
mixed |
server
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
mixed | |
$default |
mixed |
getAllQueryParameters
setQuery
Parameters:
Parameter | Type | Description |
---|---|---|
$query |
array |
setMethod
Parameters:
Parameter | Type | Description |
---|---|---|
$method |
mixed |
setPost
Parameters:
Parameter | Type | Description |
---|---|---|
$params |
array |
createPost
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$params |
array |
Inherited methods
__construct
Constructor.
public __construct(array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array(), array $files = array(), array $server = array(), string $content = null, array $headers = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$query |
array | - The GET parameters |
$request |
array | - The POST parameters |
$attributes |
array | - The request attributes (parameters parsed from the PATH_INFO, ...) |
$cookies |
array | - The COOKIE parameters |
$files |
array | - The FILES parameters |
$server |
array | - The SERVER parameters |
$content |
string | - The raw body data |
$headers |
array | - The headers |
initialize
Sets the parameters for this request.
public initialize(array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array(), array $files = array(), array $server = array(), string $content = null, array $headers = null): mixed
This method also re-initializes all properties.
Parameters:
Parameter | Type | Description |
---|---|---|
$query |
array | - The GET parameters |
$request |
array | - The POST parameters |
$attributes |
array | - The request attributes (parameters parsed from the PATH_INFO, ...) |
$cookies |
array | - The COOKIE parameters |
$files |
array | - The FILES parameters |
$server |
array | - The SERVER parameters |
$content |
string | - The raw body data |
$headers |
array | - The headers |
query
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | |
$default |
mixed |
request
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | |
$default |
mixed |
server
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | |
$default |
mixed |
headers
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | |
$default |
mixed |
getAllQueryParameters
getContent
Returns the request body content.
Parameters:
Parameter | Type | Description |
---|---|---|
$asResource |
bool | - If true, a resource will be returned |
Return Value:
- The request body content or a resource to read the body stream.
Throws:
getHeadersFromServer
Parameters:
Parameter | Type | Description |
---|---|---|
$server |
array |
createFromGlobals
Creates a new request with values from PHP's super globals.
- This method is static.
Return Value:
- A new request
Automatically generated on 2025-03-18