Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.3fromwebmozart:remove-extension-ctor-arg
Sep 25, 2014

Conversation

@webmozart
Copy link
Contributor

QA
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
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.

@webmozartwebmozartforce-pushed theremove-extension-ctor-arg branch fromc418d9d to6cbc862CompareSeptember 25, 2014 09:29
@stof
Copy link
Member

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

Thank you@webmozart.

@fabpotfabpot merged commit6cbc862 intosymfony:2.3Sep 25, 2014
fabpot added a commit that referenced this pull requestSep 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
ContributorAuthor

@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.

@webmozartwebmozart deleted the remove-extension-ctor-arg branchOctober 22, 2014 17:21
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@webmozart@stof@fabpot

[8]ページ先頭

©2009-2025 Movatter.jp