File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Codeception/Module/Symfony Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 44
55namespace Codeception \Module \Symfony ;
66
7+ use Symfony \Bundle \SecurityBundle \Security ;
78use Symfony \Component \PasswordHasher \Hasher \UserPasswordHasherInterface ;
89use Symfony \Component \Security \Core \Authorization \Voter \AuthenticatedVoter ;
910use Symfony \Component \Security \Core \Encoder \UserPasswordEncoderInterface ;
10- use Symfony \Component \Security \Core \Security ;
11+ use Symfony \Component \Security \Core \Security as LegacySecurity ;
1112use Symfony \Component \Security \Core \User \UserInterface ;
1213use function sprintf ;
1314
@@ -176,7 +177,7 @@ public function seeUserPasswordDoesNotNeedRehash(UserInterface $user = null): vo
176177 $ this ->assertFalse ($ hasher ->needsRehash ($ user ), 'User password needs rehash ' );
177178 }
178179
179- protected function grabSecurityService (): Security
180+ protected function grabSecurityService (): Security | LegacySecurity
180181 {
181182 return $ this ->grabService ('security.helper ' );
182183 }
You can’t perform that action at this time.
0 commit comments