function HttpFoundationFactory::getFiles
Converts to the input array to $_FILES structure.
1 call to HttpFoundationFactory::getFiles()
- HttpFoundationFactory::createRequest in vendor/
symfony/ psr-http-message-bridge/ Factory/ HttpFoundationFactory.php - Creates a Symfony Request instance from a PSR-7 one.
File
-
vendor/
symfony/ psr-http-message-bridge/ Factory/ HttpFoundationFactory.php, line 79
Class
- HttpFoundationFactory
- @author Kévin Dunglas <dunglas@gmail.com>
Namespace
Symfony\Bridge\PsrHttpMessage\FactoryCode
private function getFiles(array $uploadedFiles) : array {
$files = [];
foreach ($uploadedFiles as $key => $value) {
if ($value instanceof UploadedFileInterface) {
$files[$key] = $this->createUploadedFile($value);
}
else {
$files[$key] = $this->getFiles($value);
}
}
return $files;
}