-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed as not planned
Labels
HttpFoundationRFCRFC = Request For Comments (proposals about features that you want to be discussed)RFC = Request For Comments (proposals about features that you want to be discussed)
Description
Description
I'm currently implementing an event subscriber to sanitize http inputs but I'm not able to access to $content because it's protected while $request is public. Is it possible to add a setter ? otherwise anyone with the same need is forced to use Request::initialize like the following :
$event->getRequest()->initialize(
$request->query->getIterator()->getArrayCopy(),
$sanitizedRequest,
$request->attributes->getIterator()->getArrayCopy(),
$request->cookies->getIterator()->getArrayCopy(),
$request->files->getIterator()->getArrayCopy(),
$request->server->getIterator()->getArrayCopy(),
$sanitizedContent,
);
Example
No response
Metadata
Metadata
Assignees
Labels
HttpFoundationRFCRFC = Request For Comments (proposals about features that you want to be discussed)RFC = Request For Comments (proposals about features that you want to be discussed)