name: NativeRequestHandler class_comment: '# * A request handler using PHP super globals $_GET, $_POST and $_SERVER. # * # * @author Bernhard Schussek ' dependencies: - name: UnexpectedTypeException type: class source: Symfony\Component\Form\Exception\UnexpectedTypeException - name: FormUtil type: class source: Symfony\Component\Form\Util\FormUtil - name: ServerParams type: class source: Symfony\Component\Form\Util\ServerParams properties: [] methods: - name: handleRequest visibility: public parameters: - name: form - name: request default: 'null' comment: "# * A request handler using PHP super globals $_GET, $_POST and $_SERVER.\n\ # *\n# * @author Bernhard Schussek \n# */\n# class NativeRequestHandler\ \ implements RequestHandlerInterface\n# {\n# private ServerParams $serverParams;\n\ # \n# /**\n# * The allowed keys of the $_FILES array.\n# */\n# private const FILE_KEYS\ \ = [\n# 'error',\n# 'full_path',\n# 'name',\n# 'size',\n# 'tmp_name',\n# 'type',\n\ # ];\n# \n# public function __construct(?ServerParams $params = null)\n# {\n#\ \ $this->serverParams = $params ?? new ServerParams();\n# }\n# \n# /**\n# * @throws\ \ UnexpectedTypeException If the $request is not null" - name: isFileUpload visibility: public parameters: - name: data comment: null - name: getUploadFileError visibility: public parameters: - name: data comment: null - name: getRequestMethod visibility: private parameters: [] comment: null - name: fixPhpFilesArray visibility: private parameters: - name: data comment: '# * Fixes a malformed PHP $_FILES array. # * # * PHP has a bug that the format of the $_FILES array differs, depending on # * whether the uploaded file fields had normal field names or array-like # * field names ("normal" vs. "parent[child]"). # * # * This method fixes the array to look like the "normal" $_FILES array. # * # * It''s safe to pass an already converted array, in which case this method # * just returns the original array unmodified. # * # * This method is identical to {@link \Symfony\Component\HttpFoundation\FileBag::fixPhpFilesArray} # * and should be kept as such in order to port fixes quickly and easily.' - name: stripEmptyFiles visibility: private parameters: - name: data comment: null traits: - Symfony\Component\Form\Exception\UnexpectedTypeException - Symfony\Component\Form\Util\FormUtil - Symfony\Component\Form\Util\ServerParams interfaces: - RequestHandlerInterface