Skip to content

Commit e1bcdd5

Browse files
committed
bug #48288 [Security] Make onAuthenticationSuccess Response optional (db306)
This PR was merged into the 6.2 branch. Discussion ---------- [Security] Make onAuthenticationSuccess Response optional | Q | A | ------------- | --- | Branch? | 6.0, 6.1, and 6.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT Most authenticators currently use onAuthenticationSuccess with an optional Response. That's mainly due to usecases whereby we want to redirect specific users etc. Commits ------- 1e95ac7 Make onAuthenticationSuccess Response optional
2 parents b3bfdf9 + 1e95ac7 commit e1bcdd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Http/Authentication/AuthenticationSuccessHandlerInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ interface AuthenticationSuccessHandlerInterface
2929
/**
3030
* Usually called by AuthenticatorInterface::onAuthenticationSuccess() implementations.
3131
*/
32-
public function onAuthenticationSuccess(Request $request, TokenInterface $token): Response;
32+
public function onAuthenticationSuccess(Request $request, TokenInterface $token): ?Response;
3333
}

0 commit comments

Comments
 (0)