![]() |
TYPO3
7.6
|
Static Public Member Functions | |
static | fromGlobals () |
Static Protected Member Functions | |
static | prepareHeaders (array $server) |
static | normalizeUploadedFiles (array $files) |
static | createUploadedFile (array $value) |
Class ServerRequestFactory to create ServerRequest objects
Highly inspired by https://github.com/phly/http/
Definition at line 27 of file ServerRequestFactory.php.
|
staticprotected |
Create and return an UploadedFile instance from a $_FILES specification.
If the specification represents an array of values, this method will recursively resolve uploaded files.
array | $value | $_FILES structure |
Definition at line 139 of file ServerRequestFactory.php.
References elseif.
|
static |
Create a request from the original superglobal variables.
\InvalidArgumentException | when invalid file values given |
Definition at line 36 of file ServerRequestFactory.php.
References GeneralUtility\_GET(), GeneralUtility\_POST(), and GeneralUtility\getIndpEnv().
|
staticprotected |
Normalize uploaded files
Transforms each value into an UploadedFileInterface instance, and ensures that nested arrays are normalized.
array | $files |
\InvalidArgumentException | for unrecognized values |
Definition at line 108 of file ServerRequestFactory.php.
References elseif.
|
staticprotected |
Fetch headers from $_SERVER variables which are only the ones starting with HTTP_* and CONTENT_*
array | $server |
Definition at line 74 of file ServerRequestFactory.php.
References elseif.