Skip to content
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

added a sentence about the HttpException::setHeaders method #6076

Closed
wants to merge 1 commit into from

Conversation

smatyas
Copy link
Contributor

@smatyas smatyas commented Dec 25, 2015

Q A
Doc fix? no
New docs? yes symfony/symfony#17111
Applies to 2.8
Fixed tickets

This PR is a doc. change related to the linked symfony PR.

@smatyas smatyas force-pushed the http_exceptions_headers branch from 00499a6 to 37bdf76 Compare December 25, 2015 18:43
@xabbuh xabbuh added the On hold label Dec 27, 2015
fabpot added a commit to symfony/symfony that referenced this pull request Jan 25, 2016
…n the HttpException (smatyas)

This PR was submitted for the 2.8 branch but it was merged into the 3.1-dev branch instead (closes #17111).

Discussion
----------

[HttpKernel] added a setter for the headers property in the HttpException

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        | symfony/symfony-docs#6076

Added this setter, because it's now impossible to use those handy, meaningful, already implemented exceptions (like NotFound...) if one wants to set some custom headers. This PR solves this problem.
It's a backward compatible solution in this way, but maybe it would be better if the `HttpExceptionInterface` would contain the `setHeaders` function as well. Of course this would be a BC break, that's why it is missing now.

TODO:
- [x] submit changes to the documentation

Commits
-------

6a1080f [HttpKernel] added a setter for the headers property in the HttpException
@wouterj
Copy link
Member

wouterj commented Feb 6, 2016

The upstream PR has been merged now, 👍

@xabbuh xabbuh closed this in 7232de1 Feb 7, 2016
@xabbuh
Copy link
Member

xabbuh commented Feb 7, 2016

Thank you @smatyas. I have merged your PR into the master branch as the feature will be first included in Symfony 3.1. That's why your pull request is shown as closed instead of merged (but you will still get the full credit for your contribution).

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.

3 participants