Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory::getFiles PHP Method

getFiles() private method

Converts to the input array to $_FILES structure.
private getFiles ( array $uploadedFiles ) : array
$uploadedFiles array
return array
    private function getFiles(array $uploadedFiles)
    {
        $files = array();
        foreach ($uploadedFiles as $key => $value) {
            if ($value instanceof UploadedFileInterface) {
                $files[$key] = $this->createUploadedFile($value);
            } else {
                $files[$key] = $this->getFiles($value);
            }
        }
        return $files;
    }