diff options
Diffstat (limited to 'Core/Authentication')
-rw-r--r-- | Core/Authentication/RememberMe/TokenProviderInterface.php | 11 | ||||
-rw-r--r-- | Core/Authentication/Token/RememberMeToken.php | 3 |
2 files changed, 9 insertions, 5 deletions
diff --git a/Core/Authentication/RememberMe/TokenProviderInterface.php b/Core/Authentication/RememberMe/TokenProviderInterface.php index b48bd4d..7f86e4e 100644 --- a/Core/Authentication/RememberMe/TokenProviderInterface.php +++ b/Core/Authentication/RememberMe/TokenProviderInterface.php @@ -19,23 +19,25 @@ namespace Symfony\Component\Security\Core\Authentication\RememberMe; interface TokenProviderInterface { /** - * Loads the active token for the given series + * Loads the active token for the given series. * * @throws TokenNotFoundException if the token is not found * * @param string $series + * * @return PersistentTokenInterface */ function loadTokenBySeries($series); /** - * Deletes all tokens belonging to series + * Deletes all tokens belonging to series. + * * @param string $series */ function deleteTokenBySeries($series); /** - * Updates the token according to this data + * Updates the token according to this data. * * @param string $series * @param string $tokenValue @@ -44,7 +46,8 @@ interface TokenProviderInterface function updateToken($series, $tokenValue, \DateTime $lastUsed); /** - * Creates a new token + * Creates a new token. + * * @param PersistentTokenInterface $token */ function createNewToken(PersistentTokenInterface $token); diff --git a/Core/Authentication/Token/RememberMeToken.php b/Core/Authentication/Token/RememberMeToken.php index 81ab1c2..7ac9e1c 100644 --- a/Core/Authentication/Token/RememberMeToken.php +++ b/Core/Authentication/Token/RememberMeToken.php @@ -30,7 +30,8 @@ class RememberMeToken extends AbstractToken * @param string $providerKey * @param string $key */ - public function __construct(UserInterface $user, $providerKey, $key) { + public function __construct(UserInterface $user, $providerKey, $key) + { parent::__construct($user->getRoles()); if (empty($key)) { |