File tree 1 file changed +3
-2
lines changed
src/Codeception/Module/Symfony
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace Codeception \Module \Symfony ;
6
6
7
+ use Symfony \Bundle \SecurityBundle \Security ;
7
8
use Symfony \Component \PasswordHasher \Hasher \UserPasswordHasherInterface ;
8
9
use Symfony \Component \Security \Core \Authorization \Voter \AuthenticatedVoter ;
9
10
use Symfony \Component \Security \Core \Encoder \UserPasswordEncoderInterface ;
10
- use Symfony \Component \Security \Core \Security ;
11
+ use Symfony \Component \Security \Core \Security as LegacySecurity ;
11
12
use Symfony \Component \Security \Core \User \UserInterface ;
12
13
use function sprintf ;
13
14
@@ -176,7 +177,7 @@ public function seeUserPasswordDoesNotNeedRehash(UserInterface $user = null): vo
176
177
$ this ->assertFalse ($ hasher ->needsRehash ($ user ), 'User password needs rehash ' );
177
178
}
178
179
179
- protected function grabSecurityService (): Security
180
+ protected function grabSecurityService (): Security | LegacySecurity
180
181
{
181
182
return $ this ->grabService ('security.helper ' );
182
183
}
You can’t perform that action at this time.
0 commit comments