29
29
*/
30
30
class NotFullFledgedEqualNormalLoginHandler implements NotFullFledgedHandlerInterface
31
31
{
32
- public function handle (ExceptionEvent $ event , AccessDeniedException $ exception , AuthenticationTrustResolverInterface $ trustResolver , ?TokenInterface $ token , ?LoggerInterface $ logger , callable $ starAuthenticationCallback ): bool
32
+ public function handle (ExceptionEvent $ event , AccessDeniedException $ exception , AuthenticationTrustResolverInterface $ trustResolver , ?TokenInterface $ token , ?LoggerInterface $ logger , callable $ startAuthenticationCallback ): bool
33
33
{
34
34
if (!$ trustResolver ->isAuthenticated ($ token )) {
35
- $ this ->reauthenticate ($ starAuthenticationCallback , $ event , $ token , $ exception , $ logger );
35
+ $ this ->reauthenticate ($ startAuthenticationCallback , $ event , $ token , $ exception , $ logger );
36
36
}
37
37
38
38
foreach ($ exception ->getAttributes () as $ attribute ) {
39
39
if (\in_array ($ attribute , [AuthenticatedVoter::IS_AUTHENTICATED_FULLY ])) {
40
- $ this ->reauthenticate ($ starAuthenticationCallback , $ event , $ token , $ exception , $ logger );
40
+ $ this ->reauthenticate ($ startAuthenticationCallback , $ event , $ token , $ exception , $ logger );
41
41
42
42
return true ;
43
43
}
@@ -46,7 +46,7 @@ public function handle(ExceptionEvent $event, AccessDeniedException $exception,
46
46
return false ;
47
47
}
48
48
49
- private function reauthenticate (callable $ starAuthenticationCallback , ExceptionEvent $ event , ?TokenInterface $ token , AccessDeniedException $ exception , ?LoggerInterface $ logger ): void
49
+ private function reauthenticate (callable $ startAuthenticationCallback , ExceptionEvent $ event , ?TokenInterface $ token , AccessDeniedException $ exception , ?LoggerInterface $ logger ): void
50
50
{
51
51
$ logger ?->debug('Access denied, the user is not fully authenticated; redirecting to authentication entry point. ' , ['exception ' => $ exception ]);
52
52
@@ -56,7 +56,7 @@ private function reauthenticate(callable $starAuthenticationCallback, ExceptionE
56
56
$ insufficientAuthenticationException ->setToken ($ token );
57
57
}
58
58
59
- $ event ->setResponse ($ starAuthenticationCallback ($ event ->getRequest (), $ insufficientAuthenticationException ));
59
+ $ event ->setResponse ($ startAuthenticationCallback ($ event ->getRequest (), $ insufficientAuthenticationException ));
60
60
} catch (\Exception $ e ) {
61
61
$ event ->setThrowable ($ e );
62
62
}
0 commit comments