Skip to content

Commit d1878ae

Browse files
Reverted removal string providerKey
1 parent d66c11d commit d1878ae

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

src/Symfony/Component/Security/Guard/AbstractGuardAuthenticator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public function supports(Request $request)
3636
* Shortcut to create a PostAuthenticationGuardToken for you, if you don't really
3737
* care about which authenticated token you're using.
3838
*
39+
* @param string $providerKey
40+
*
3941
* @return PostAuthenticationGuardToken
4042
*/
4143
public function createAuthenticatedToken(UserInterface $user, $providerKey)

src/Symfony/Component/Security/Guard/Authenticator/AbstractFormLoginAuthenticator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio
5353
}
5454

5555
/**
56-
* Override to change what happens after successful authentication.
56+
* Override to change what happens after successful authentication
57+
*
58+
* @param string $providerKey
5759
*
5860
* @return RedirectResponse
5961
*/

src/Symfony/Component/Security/Guard/GuardAuthenticatorHandler.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ public function authenticateWithToken(TokenInterface $token, Request $request/*,
7070
/**
7171
* Returns the "on success" response for the given GuardAuthenticator.
7272
*
73+
* @param string $providerKey The provider (i.e. firewall) key
74+
*
7375
* @return Response|null
7476
*/
7577
public function handleAuthenticationSuccess(TokenInterface $token, Request $request, GuardAuthenticatorInterface $guardAuthenticator, $providerKey)
@@ -88,6 +90,8 @@ public function handleAuthenticationSuccess(TokenInterface $token, Request $requ
8890
* Convenience method for authenticating the user and returning the
8991
* Response *if any* for success.
9092
*
93+
* @param string $providerKey The provider (i.e. firewall) key
94+
*
9195
* @return Response|null
9296
*/
9397
public function authenticateUserAndHandleSuccess(UserInterface $user, Request $request, GuardAuthenticatorInterface $authenticator, $providerKey)
@@ -105,6 +109,8 @@ public function authenticateUserAndHandleSuccess(UserInterface $user, Request $r
105109
* Handles an authentication failure and returns the Response for the
106110
* GuardAuthenticator.
107111
*
112+
* @param string $providerKey The provider (i.e. firewall) key
113+
*
108114
* @return Response|null
109115
*/
110116
public function handleAuthenticationFailure(AuthenticationException $authenticationException, Request $request, GuardAuthenticatorInterface $guardAuthenticator, $providerKey)

src/Symfony/Component/Security/Guard/GuardAuthenticatorInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ public function checkCredentials($credentials, UserInterface $user);
9797
*
9898
* @see AbstractGuardAuthenticator
9999
*
100+
* @param string $providerKey The provider (i.e. firewall) key
101+
*
100102
* @return GuardTokenInterface
101103
*/
102104
public function createAuthenticatedToken(UserInterface $user, $providerKey);
@@ -123,6 +125,8 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio
123125
* If you return null, the current request will continue, and the user
124126
* will be authenticated. This makes sense, for example, with an API.
125127
*
128+
* @param string $providerKey The provider (i.e. firewall) key
129+
*
126130
* @return Response|null
127131
*/
128132
public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey);

0 commit comments

Comments
 (0)