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

Fixed a redundant check in DefaultValueResolver#18575

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:masterfromlinaori:fix/default-value-resolver
Apr 28, 2016
Merged

Fixed a redundant check in DefaultValueResolver#18575

fabpot merged 1 commit intosymfony:masterfromlinaori:fix/default-value-resolver
Apr 28, 2016

Conversation

@linaori
Copy link
Contributor

QA
Branch?master
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets~
LicenseMIT
Doc PR~

In#18308 I have introduced aDefaultValueResolver. When writing documentation, I was planning on adding the code as an example and I noticed it did a check in the request attributes. A default value value should always be injected, whether the request has it or not. In case the requestdoes have the value, it would've already been added and thus never reach the default resolver.

Thus as this is never called in the default and configured flows and should not change the default value behavior, I'm removing this.

@Koc
Copy link
Contributor

Koc commentedApr 18, 2016

Heh, you answered on my question here#18308 (comment)

@linaori
Copy link
ContributorAuthor

@Koc correct, back when I answered it, the sequences weren't that robust. Now that theArgumentResolver creates the objects when not passed along, it's guaranteed that the default sequence will not cause this issue. Previously only with theFrameworkBundle this could be guaranteed.

So your comment was indeed correct, but ahead of time 👍

@fabpot
Copy link
Member

Thank you@iltar.

@fabpotfabpot merged commite54c1a6 intosymfony:masterApr 28, 2016
fabpot added a commit that referenced this pull requestApr 28, 2016
This PR was merged into the 3.1-dev branch.Discussion----------Fixed a redundant check in DefaultValueResolver| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | ~| License       | MIT| Doc PR        | ~In#18308 I have introduced a `DefaultValueResolver`. When writing documentation, I was planning on adding the code as an example and I noticed it did a check in the request attributes. A default value value should always be injected, whether the request has it or not. In case the request _does_ have the value, it would've already been added and thus never reach the default resolver.Thus as this is never called in the default and configured flows and should not change the default value behavior, I'm removing this.Commits-------e54c1a6 Fixed a redundant check in DefaultValueResolver
@linaorilinaori deleted the fix/default-value-resolver branchFebruary 8, 2019 13:38
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@linaori@Koc@fabpot@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp