summaryrefslogtreecommitdiffstats
path: root/Core/Authentication/Provider/RememberMeAuthenticationProvider.php
diff options
context:
space:
mode:
authorJoseph Bielawski <stloyd@gmail.com>2014-01-17 10:30:22 +0100
committerJoseph Bielawski <stloyd@gmail.com>2014-01-17 10:30:22 +0100
commit916ee032f85e3bba7b6e5fb05b807d27d4267640 (patch)
tree9f712835b1de39fda0271b493927d2b6a0bb99df /Core/Authentication/Provider/RememberMeAuthenticationProvider.php
parentbcdebea77d289cc60ca17f135edd6cd95f4991fa (diff)
downloadsymfony-security-916ee032f85e3bba7b6e5fb05b807d27d4267640.zip
symfony-security-916ee032f85e3bba7b6e5fb05b807d27d4267640.tar.gz
symfony-security-916ee032f85e3bba7b6e5fb05b807d27d4267640.tar.bz2
[Component/Security] Fixed some phpdocs in Security/Core
Diffstat (limited to 'Core/Authentication/Provider/RememberMeAuthenticationProvider.php')
-rw-r--r--Core/Authentication/Provider/RememberMeAuthenticationProvider.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/Core/Authentication/Provider/RememberMeAuthenticationProvider.php b/Core/Authentication/Provider/RememberMeAuthenticationProvider.php
index 4175907..234bddb 100644
--- a/Core/Authentication/Provider/RememberMeAuthenticationProvider.php
+++ b/Core/Authentication/Provider/RememberMeAuthenticationProvider.php
@@ -22,6 +22,13 @@ class RememberMeAuthenticationProvider implements AuthenticationProviderInterfac
private $key;
private $providerKey;
+ /**
+ * Constructor.
+ *
+ * @param UserCheckerInterface $userChecker An UserCheckerInterface interface
+ * @param string $key A key
+ * @param string $providerKey A provider key
+ */
public function __construct(UserCheckerInterface $userChecker, $key, $providerKey)
{
$this->userChecker = $userChecker;
@@ -29,6 +36,9 @@ class RememberMeAuthenticationProvider implements AuthenticationProviderInterfac
$this->providerKey = $providerKey;
}
+ /**
+ * {@inheritdoc}
+ */
public function authenticate(TokenInterface $token)
{
if (!$this->supports($token)) {
@@ -48,6 +58,9 @@ class RememberMeAuthenticationProvider implements AuthenticationProviderInterfac
return $authenticatedToken;
}
+ /**
+ * {@inheritdoc}
+ */
public function supports(TokenInterface $token)
{
return $token instanceof RememberMeToken && $token->getProviderKey() === $this->providerKey;