Skip to content

[HttpFoundation] remove deprecated features #22863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented May 22, 2017

Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? yes
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

@xabbuh
Copy link
Member Author

xabbuh commented May 23, 2017

looks like we need #22873 first

@xabbuh xabbuh force-pushed the http-foundation-remove-deprecated-features branch from 4a4593f to 6651573 Compare May 23, 2017 12:17
nicolas-grekas added a commit that referenced this pull request May 25, 2017
… (xabbuh)

This PR was merged into the 3.3 branch.

Discussion
----------

[HttpKernel] don't call getTrustedHeaderName() if possible

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | https://travis-ci.org/symfony/symfony/jobs/235008102 (failing tests of #22863)
| License       | MIT
| Doc PR        |

Commits
-------

6350dab don't call getTrustedHeaderName() if possible
@xabbuh xabbuh force-pushed the http-foundation-remove-deprecated-features branch from 6651573 to 96d031b Compare May 26, 2017 07:42
@nicolas-grekas
Copy link
Member

so, InlineFragmentRenderer 4 still conditionally calls getTrustedHeaderName for BC for 3.4?

* the `Request::setTrustedHeaderName()` and `Request::getTrustedHeaderName()`
methods have been removed
* the `Request::HEADER_CLIENT_IP` constant has been removed, use
`Request::HEADER_X_FORWARDED_FOR` instead
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should configure your line breaks at 120, this is cutting too early to me

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC @fabpot once talked about a limit of 80 characters in changelog files

@xabbuh xabbuh force-pushed the http-foundation-remove-deprecated-features branch from 96d031b to b13346b Compare May 29, 2017 06:41
@xabbuh
Copy link
Member Author

xabbuh commented May 29, 2017

so, InlineFragmentRenderer 4 still conditionally calls getTrustedHeaderName for BC for 3.4?

Ah no, that was not intended. Should be fixed.

@xabbuh
Copy link
Member Author

xabbuh commented Jun 3, 2017

Status: Needs Review

@xabbuh xabbuh force-pushed the http-foundation-remove-deprecated-features branch from b13346b to 17c7a2d Compare June 21, 2017 12:43
fabpot added a commit that referenced this pull request Jun 21, 2017
This PR was merged into the 4.0-dev branch.

Discussion
----------

[DI] Uncomment code

| Q             | A
| ------------- | ---
| Branch?       | master <!-- see comment below -->
| Bug fix?      | no
| New feature?  | no <!-- don't forget updating src/**/CHANGELOG.md files -->
| BC breaks?    | no
| Deprecations? | no <!-- don't forget updating UPGRADE-*.md files -->
| Tests pass?   | yes
| Fixed tickets | N/A <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | N/A

I was about fixing all [other occurrences of commented code and `func_get/num_arg(s)`](https://github.com/symfony/symfony/search?utf8=%E2%9C%93&q=func_num_args&type=) as BC layer usages at once, but the following PRs will already cover it:

- HttpFoundation: #22863
- Serializer: #23241
- Process: #22836
- DotEnv: #23242

So it only remains DI ones.

Commits
-------

03f33b5 [DI] Uncomment code
@fabpot
Copy link
Member

fabpot commented Jun 21, 2017

Thank you @xabbuh.

@fabpot fabpot merged commit 17c7a2d into symfony:master Jun 21, 2017
fabpot added a commit that referenced this pull request Jun 21, 2017
This PR was merged into the 4.0-dev branch.

Discussion
----------

[HttpFoundation] remove deprecated features

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | yes
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

17c7a2d [HttpFoundation] remove deprecated features
@xabbuh xabbuh deleted the http-foundation-remove-deprecated-features branch June 21, 2017 14:38
@c960657
Copy link
Contributor

c960657 commented Jun 29, 2017

The documentation for getClientIp(), getPort(), isSecure() and getHost() includes the following paragraph:

If your reverse proxy uses a different header name than "X-Forwarded-Xxx", configure it via via the $trustedHeaderSet argument of the Request::setTrustedProxies() method instead.

This feature is no longer supported, so this must be removed from the documentation.

fabpot added a commit that referenced this pull request Jul 3, 2017
…tion (xabbuh)

This PR was merged into the 4.0-dev branch.

Discussion
----------

[HttpFoundation] remove no longer valid docblock description

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #22863 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

1beee41 remove no longer valid docblock description
@fabpot fabpot mentioned this pull request Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants