diff options
author | Ryan Weaver <ryan@thatsquality.com> | 2015-09-20 20:45:52 -0400 |
---|---|---|
committer | Ryan Weaver <ryan@thatsquality.com> | 2015-09-20 20:45:52 -0400 |
commit | 8d2203d5a4b8d9ef4f5e6d7610be0e6d565a7e8f (patch) | |
tree | 6c9812a0546d39d5ad29e694e20e86a2fc850a2e | |
parent | 7e00d82e77d150ac8c328e65248845eaa2d95442 (diff) | |
download | symfony-security-8d2203d5a4b8d9ef4f5e6d7610be0e6d565a7e8f.zip symfony-security-8d2203d5a4b8d9ef4f5e6d7610be0e6d565a7e8f.tar.gz symfony-security-8d2203d5a4b8d9ef4f5e6d7610be0e6d565a7e8f.tar.bz2 |
fabbot
-rw-r--r-- | Guard/Authenticator/AbstractFormLoginAuthenticator.php | 23 | ||||
-rw-r--r-- | Guard/GuardAuthenticatorHandler.php | 2 | ||||
-rw-r--r-- | Guard/Tests/Provider/GuardAuthenticationProviderTest.php | 1 |
3 files changed, 12 insertions, 14 deletions
diff --git a/Guard/Authenticator/AbstractFormLoginAuthenticator.php b/Guard/Authenticator/AbstractFormLoginAuthenticator.php index c972ed6..b3c6bd7 100644 --- a/Guard/Authenticator/AbstractFormLoginAuthenticator.php +++ b/Guard/Authenticator/AbstractFormLoginAuthenticator.php @@ -15,12 +15,8 @@ use Symfony\Component\Security\Guard\AbstractGuardAuthenticator; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; -use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface; use Symfony\Component\Security\Core\Exception\AuthenticationException; -use Symfony\Component\Security\Core\Exception\BadCredentialsException; use Symfony\Component\Security\Core\Security; -use Symfony\Component\Security\Core\User\UserInterface; -use Symfony\Component\Security\Core\User\UserProviderInterface; /** * A base class to make form login authentication easier! @@ -30,7 +26,7 @@ use Symfony\Component\Security\Core\User\UserProviderInterface; abstract class AbstractFormLoginAuthenticator extends AbstractGuardAuthenticator { /** - * Return the URL to the login page + * Return the URL to the login page. * * @return string */ @@ -40,17 +36,18 @@ abstract class AbstractFormLoginAuthenticator extends AbstractGuardAuthenticator * The user will be redirected to the secure page they originally tried * to access. But if no such page exists (i.e. the user went to the * login page directly), this returns the URL the user should be redirected - * to after logging in successfully (e.g. your homepage) + * to after logging in successfully (e.g. your homepage). * * @return string */ abstract protected function getDefaultSuccessRedirectUrl(); /** - * Override to change what happens after a bad username/password is submitted + * Override to change what happens after a bad username/password is submitted. * - * @param Request $request + * @param Request $request * @param AuthenticationException $exception + * * @return RedirectResponse */ public function onAuthenticationFailure(Request $request, AuthenticationException $exception) @@ -62,11 +59,12 @@ abstract class AbstractFormLoginAuthenticator extends AbstractGuardAuthenticator } /** - * Override to change what happens after successful authentication + * Override to change what happens after successful authentication. * - * @param Request $request + * @param Request $request * @param TokenInterface $token - * @param string $providerKey + * @param string $providerKey + * * @return RedirectResponse */ public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey) @@ -91,8 +89,9 @@ abstract class AbstractFormLoginAuthenticator extends AbstractGuardAuthenticator * Override to control what happens when the user hits a secure page * but isn't logged in yet. * - * @param Request $request + * @param Request $request * @param AuthenticationException|null $authException + * * @return RedirectResponse */ public function start(Request $request, AuthenticationException $authException = null) diff --git a/Guard/GuardAuthenticatorHandler.php b/Guard/GuardAuthenticatorHandler.php index 5c6451e..5e1351d 100644 --- a/Guard/GuardAuthenticatorHandler.php +++ b/Guard/GuardAuthenticatorHandler.php @@ -113,7 +113,7 @@ class GuardAuthenticatorHandler * @param AuthenticationException $authenticationException * @param Request $request * @param GuardAuthenticatorInterface $guardAuthenticator - * @param string $providerKey The key of the firewall + * @param string $providerKey The key of the firewall * * @return null|Response */ diff --git a/Guard/Tests/Provider/GuardAuthenticationProviderTest.php b/Guard/Tests/Provider/GuardAuthenticationProviderTest.php index 3bc002b..33c00e5 100644 --- a/Guard/Tests/Provider/GuardAuthenticationProviderTest.php +++ b/Guard/Tests/Provider/GuardAuthenticationProviderTest.php @@ -11,7 +11,6 @@ namespace Symfony\Component\Security\Guard\Tests\Provider; -use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken; use Symfony\Component\Security\Guard\Provider\GuardAuthenticationProvider; use Symfony\Component\Security\Guard\Token\PostAuthenticationGuardToken; |