[WIP] Permit HttpFoundation\Request class override

This PR attempts to solve #7453. Comments needed!

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | I don't know
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #7453