refactor with
Merge pull request #5735 from lucasmichot/4.2-redirectresponse-with

[4.2] Improved RedirectResponse::with
Merge branch '4.2'