Skip to content

Commit dac2474

Browse files
Add generics for PasswordUpgraderInterface
1 parent 72cf8cf commit dac2474

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

extension.neon

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ parameters:
1414
featureToggles:
1515
skipCheckGenericClasses:
1616
- Symfony\Component\OptionsResolver\Options
17+
- Symfony\Component\Security\Core\User\PasswordUpgraderInterface
1718
stubFiles:
1819
- stubs/Psr/Cache/CacheItemInterface.stub
1920
- stubs/Symfony/Bundle/FrameworkBundle/KernelBrowser.stub
@@ -50,6 +51,8 @@ parameters:
5051
- stubs/Symfony/Component/Security/Acl/Model/EntryInterface.stub
5152
- stubs/Symfony/Component/Security/Core/Authentication/Token/TokenInterface.stub
5253
- stubs/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.stub
54+
- stubs/Symfony/Component/Security/Core/User/PasswordAuthenticatedUserInterface.stub
55+
- stubs/Symfony/Component/Security/Core/User/PasswordUpgraderInterface.stub
5356
- stubs/Symfony/Component/Serializer/Encoder/ContextAwareDecoderInterface.stub
5457
- stubs/Symfony/Component/Serializer/Encoder/DecoderInterface.stub
5558
- stubs/Symfony/Component/Serializer/Encoder/EncoderInterface.stub
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
namespace Symfony\Component\Security\Core\User;
4+
5+
interface PasswordAuthenticatedUserInterface
6+
{
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
namespace Symfony\Component\Security\Core\User;
4+
5+
/**
6+
* @template TUser of PasswordAuthenticatedUserInterface
7+
*/
8+
interface PasswordUpgraderInterface
9+
{
10+
/**
11+
* @param TUser $user
12+
*/
13+
public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $newHashedPassword): void;
14+
}

0 commit comments

Comments
 (0)