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

[SecurityBundle] Prevent auto-registration of UserPasswordEncoderCommand#22858

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
nicolas-grekas merged 1 commit intosymfony:3.3fromchalasr:fix-deprec
May 23, 2017

Conversation

@chalasr
Copy link
Member

QA
Branch?3.3
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#22855
LicenseMIT
Doc PRn/a

Always registers the command as a service even if no encoders are configured so that it is not auto-registered via reflection.
Prevents an irrelevant deprecation when no encoders are configured and, if a day the per-convention command registration is removed, ensures that the command always exists (leading to an exception saying that you have no configured encoder, better than nothing).
ping@ogizanagi

Copy link
Contributor

@ogizanagiogizanagi left a comment

Choose a reason for hiding this comment

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

Oh...Now I understand this issue better indeed. Good catch. 👍

@weaverryan
Copy link
Member

👍 Fixes the issue

However, I am a bit worried about the PR that introduced this -#20677 - specifically that it adds the EncoderFactoryInterface to the constructor. I think we need to be careful to keep commands lazy - I believe this change will cause that service to be instantiated just by runningbin/console with no arguments.

@nicolas-grekasnicolas-grekas added this to the3.3 milestoneMay 22, 2017
@ogizanagi
Copy link
Contributor

@weaverryan : Which is something that#22734 would solve. (Anyway for this particular case,EncoderFactory is pretty cheap to instantiate)

@weaverryan
Copy link
Member

@ogizanagi Thanks for pointing me to that :). I'd like to see that get done!

👍

@nicolas-grekas
Copy link
Member

Thank you@chalasr.

@nicolas-grekasnicolas-grekas merged commitb39b35b intosymfony:3.3May 23, 2017
nicolas-grekas added a commit that referenced this pull requestMay 23, 2017
…EncoderCommand (chalasr)This PR was merged into the 3.3 branch.Discussion----------[SecurityBundle] Prevent auto-registration of UserPasswordEncoderCommand| Q             | A| ------------- | ---| Branch?       | 3.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#22855| License       | MIT| Doc PR        | n/aAlways registers the command as a service even if no encoders are configured so that it is not auto-registered via reflection.Prevents an irrelevant deprecation when no encoders are configured and, if a day the per-convention command registration is removed, ensures that the command always exists (leading to an exception saying that you have no configured encoder, better than nothing).ping@ogizanagiCommits-------b39b35b Prevent auto-registration of UserPasswordEncoderCommand
@chalasrchalasr deleted the fix-deprec branchMay 23, 2017 08:59
@fabpotfabpot mentioned this pull requestMay 29, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@ogizanagiogizanagiogizanagi approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

5 participants

@chalasr@weaverryan@ogizanagi@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp