Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[SecurityBundle] register alias for argument for password hasher#60371
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
base:7.4
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
2216356
to576f604
Compare@nicolas-grekas I addressed your comments, added tests, and updated CHANGELOG.md |
576f604
to9b50bc9
Comparesrc/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
9b50bc9
toc6051e3
CompareThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Great 👍
7.4 | ||
--- | ||
* Register alias for argument for password hasher when the key is not a class name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Let's be more explicit and maybe give an example. Without any context, I don't understand what it means.
Uh oh!
There was an error while loading.Please reload this page.
This is a new feature, but I want to gather feedback before finishing the PR (meta + doc + test)
I need to hash some sensitive data in my database (2FA recovery code).
They are not tied to a specific class. So I need a "raw hasher".
ATM, I'm able to write:
But to get it, I need to write:
There is an extra steps here (low of demeter...)
With this PR, I propose an alternative:
DX is extra smooth. If I forgot the
Target
Attribute: