8000 Making minor fixes thanks to comments · symfony/symfony@7cd1a13 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7cd1a13

Browse files
committed
Making minor fixes thanks to comments
1 parent b1e75f7 commit 7cd1a13

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ abstract protected function getLoginUrl();
4141
* login page directly), this returns the URL the user should be redirected
4242
* to after logging in successfully (e.g. your homepage).
4343
*
44-
* @deprecated Implement onAuthenticationFailure() instead of needing this function.
44+
* @deprecated Implement onAuthenticationSuccess() instead of needing this function.
4545
*
4646
* @return string
4747
*/
@@ -79,7 +79,7 @@ public function onAuthenticationSuccess(Request $request, TokenInterface $token,
7979
{
8080
@trigger_error(sprintf('The AbstractFormLoginAuthenticator::onAuthenticationSuccess() implementation was deprecated in Symfony 3.1 and will be removed in Symfony 4.0. You should implement this method yourself in %s and remove getDefaultSuccessRedirectUrl().', get_class($this)), E_USER_DEPRECATED);
8181

82-
// if the user hit a secure page and start() was called, this was
82+
// if the user hits a secure page and start() was called, this was
8383
// the URL they were on, and probably where you want to redirect to
8484
$targetPath = $this->getTargetPath($request->getSession(), $providerKey);
8585

src/Symfony/Component/Security/Guard/Tests/Authenticator/AbstractFormLoginAuthenticatorTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ public function testLegacyWithLoginUrl()
3434
'provider_key'
3535
);
3636

37-
$this->assertEquals(
38-
'/default_url',
39-
$actualResponse->getTargetUrl()
40-
);
37+
$this->assertEquals('/default_url', $actualResponse->getTargetUrl());
4138
}
4239
}
4340

@@ -64,4 +61,3 @@ public function checkCredentials($credentials, UserInterface $user)
6461
{
6562
}
6663
}
67-

0 commit comments

Comments
 (0)
0