PhpSuperGlobalsConverter
Converts BrowserKit\Request's request parameters and files into PHP-compatible structure
Tags
Table of Contents
Methods
- remapFiles() : array<string|int, mixed>
- Rearrange files array to be compatible with PHP $_FILES superglobal structure
- remapRequestParameters() : array<string|int, mixed>
- Escape high-level variable name with dots, underscores and other "special" chars to be compatible with PHP "bug"
- rearrangeFiles() : mixed
- replaceSpaces() : array<string|int, mixed>
- Replace spaces and dots and other chars in high-level query parameters for compatibility with PHP bug (or not a bug)
Methods
remapFiles()
Rearrange files array to be compatible with PHP $_FILES superglobal structure
protected
remapFiles(array<string|int, mixed> $requestFiles) : array<string|int, mixed>
Parameters
- $requestFiles : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>remapRequestParameters()
Escape high-level variable name with dots, underscores and other "special" chars to be compatible with PHP "bug"
protected
remapRequestParameters(array<string|int, mixed> $parameters) : array<string|int, mixed>
Parameters
- $parameters : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>rearrangeFiles()
private
rearrangeFiles(mixed $requestFiles) : mixed
Parameters
- $requestFiles : mixed
replaceSpaces()
Replace spaces and dots and other chars in high-level query parameters for compatibility with PHP bug (or not a bug)
private
replaceSpaces(array<string|int, mixed> $parameters) : array<string|int, mixed>
Parameters
- $parameters : array<string|int, mixed>
-
Array of request parameters to be converted