Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Form] Removed constructor argument from FormTypeHttpFoundationExtension for forward compatibility with 2.5 #12033

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
Sep 25, 2014

Conversation

webmozart
Copy link
Contributor

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

This argument was introduced in #11924. No release was made of the 2.3 branch after merging that PR.

Since a different constructor argument ($requestHandler) was added to FormTypeHttpFoundationExtension in the 2.5 branch, we cannot merge this forward in a BC fashion. For this reason, I removed the argument again.

@webmozart webmozart added the Form label Sep 25, 2014
@webmozart webmozart force-pushed the remove-extension-ctor-arg branch from c418d9d to 6cbc862 Compare September 25, 2014 09:29
@stof
Copy link
Member

stof commented Sep 25, 2014

The issue is that this means that using the HttpFoundationExtension will not read headers from HttpFoundation, but from the superglobals (as you have no way to pass a ServerParams instance initialized with the RequestStack). This is very likely to break tests with the WebTestCase, which don't have the superglobals set (as well as code of people running Symfony in a long-running process through a special setup)

@fabpot
Copy link
Member

fabpot commented Sep 25, 2014

Thank you @webmozart.

@fabpot fabpot merged commit 6cbc862 into symfony:2.3 Sep 25, 2014
fabpot added a commit that referenced this pull request Sep 25, 2014
…ndationExtension for forward compatibility with 2.5 (webmozart)

This PR was merged into the 2.3 branch.

Discussion
----------

[Form] Removed constructor argument from FormTypeHttpFoundationExtension for forward compatibility with 2.5

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

This argument was introduced in #11924. No release was made of the 2.3 branch after merging that PR.

Since a different constructor argument (`$requestHandler`) was added to FormTypeHttpFoundationExtension in the 2.5 branch, we cannot merge this forward in a BC fashion. For this reason, I removed the argument again.

Commits
-------

6cbc862 [Form] Removed constructor argument from FormTypeHttpFoundationExtension for forward compatibility with 2.5
@webmozart
Copy link
Contributor Author

@stof You are right, but that was the same before with FormValidator. We should fix this, but we need to find a proper way to do this. Probably we can only fix this as of 2.5.

@webmozart webmozart deleted the remove-extension-ctor-arg branch October 22, 2014 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.