Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix dependencies on HttpFoundation component #11637

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
merged 1 commit into from
Aug 13, 2014

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Aug 11, 2014

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

The closeOutputBuffers() method was added to the Response class of the HttpFoundation in Symfony 2.5. Therefore, parts that are calling this method must depend on symfony/http-foundation 2.5 or higher.

@@ -18,7 +18,7 @@
"require": {
"php": ">=5.3.3",
"symfony/twig-bridge": "~2.5",
"symfony/http-kernel": "~2.1"
"symfony/http-kernel": "~2.5"
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand why you bump the HttpKernel dependency here, if your issue is with HttpFoundation

Copy link
Member Author

Choose a reason for hiding this comment

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

Response::closeOutputBuffers() is called in the ExceptionController. I don't know why the HttpFoundation component isn't required here. But we then need to increase the HttpKernel dependency to indirectly receive the needed version of the HttpFoundation.

I would be more happy with requiring the HttpFoundation component here explicitly. If you agree, I'll add it and revert the change to the HttpKernel dependency.

Copy link
Member

Choose a reason for hiding this comment

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

well, until now, we were happy with the indirect dependency. But if we need HttpFoundation 2.5, the right way is to require it explicitly, not to bump another dependency relying on the fact it has also bumped its own dependency

Copy link
Member Author

Choose a reason for hiding this comment

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

I see. Changed it accordingly.

The closeOutputBuffers() method was added to the Response class of
the HttpFoundation in Symfony 2.5. Therefore, parts that are calling
this method must depend on symfony/http-foundation 2.5 or higher.
@romainneutron
Copy link
Contributor

👍

1 similar comment
@stof
Copy link
Member

stof commented Aug 13, 2014

👍

@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit fe2f007 into symfony:2.5 Aug 13, 2014
nicolas-grekas added a commit that referenced this pull request Aug 13, 2014
This PR was merged into the 2.5 branch.

Discussion
----------

fix dependencies on HttpFoundation component

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

The ``closeOutputBuffers()`` method was added to the ``Response`` class of the HttpFoundation in Symfony 2.5. Therefore, parts that are calling this method must depend on ``symfony/http-foundation`` 2.5 or higher.

Commits
-------

fe2f007 fix dependencies on HttpFoundation component
@xabbuh xabbuh deleted the issue-11636 branch August 13, 2014 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants