$parsedBody = null;
} } else { $parsedBody =
$symfonyRequest->request->
all();
} $request =
$request ->
withBody($body) ->
withUploadedFiles($this->
getFiles($symfonyRequest->files->
all())) ->
withCookieParams($symfonyRequest->cookies->
all()) ->
withQueryParams($symfonyRequest->query->
all()) ->
withParsedBody($parsedBody) ;
foreach ($symfonyRequest->attributes->
all() as $key =>
$value) { $request =
$request->
withAttribute($key,
$value);
} return $request;
} /**
* Converts Symfony uploaded files array to the PSR one.
*/