W3cubDocs

/Symfony 4.1

NativeRequestHandler

class NativeRequestHandler implements RequestHandlerInterface

A request handler using PHP's super globals $_GET, $_POST and $_SERVER.

Methods

__construct(ServerParams $params = null)
handleRequest(FormInterface $form, mixed $request = null)

Submits a form if it was submitted.

bool isFileUpload(mixed $data)

Returns true if the given data is a file upload.

Details

__construct(ServerParams $params = null)

Parameters

ServerParams $params

handleRequest(FormInterface $form, mixed $request = null)

Submits a form if it was submitted.

Parameters

FormInterface $form The form to submit
mixed $request The current request

bool isFileUpload(mixed $data)

Returns true if the given data is a file upload.

Parameters

mixed $data The form field data

Return Value

bool

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Form/NativeRequestHandler.html