@@ -644,7 +644,7 @@ you must register a service for it in order to use it as a named hasher:
644
644
645
645
<config >
646
646
<!-- ... -->
647
- <security : password_hasher class =" app_hasher "
647
+ <security : password_hasher class =" App\Entity\User "
648
648
id =" App\Security\Hasher\MyCustomPasswordHasher" />
649
649
</config >
650
650
</srv : container >
@@ -657,12 +657,12 @@ you must register a service for it in order to use it as a named hasher:
657
657
658
658
return static function (SecurityConfig $security): void {
659
659
// ...
660
- $security->passwordHasher('app_hasher ')
660
+ $security->passwordHasher('App\Entity\User ')
661
661
->id(MyCustomPasswordHasher::class)
662
662
;
663
663
};
664
664
665
- This creates a hasher named ``app_hasher `` from a service with the ID
665
+ This creates a hasher named ``App\Entity\User `` from a service with the ID
666
666
``App\Security\Hasher\MyCustomPasswordHasher ``.
667
667
668
668
Hashing a Stand-Alone String
@@ -862,7 +862,7 @@ Now, define a password hasher using the ``id`` setting:
862
862
<config >
863
863
<!-- ... -->
864
864
<!-- id: the service ID of your custom hasher (the FQCN using the default services.yaml) -->
865
- <security : password_hasher class =" app_hasher "
865
+ <security : password_hasher class =" App\Entity\User "
866
866
id =" App\Security\Hasher\CustomVerySecureHasher" />
867
867
</config >
868
868
</srv : container >
@@ -875,7 +875,7 @@ Now, define a password hasher using the ``id`` setting:
875
875
876
876
return static function (SecurityConfig $security): void {
877
877
// ...
878
- $security->passwordHasher('app_hasher ')
878
+ $security->passwordHasher('App\Entity\User ')
879
879
// the service ID of your custom hasher (the FQCN using the default services.yaml)
880
880
->id(CustomVerySecureHasher::class)
881
881
;
0 commit comments