diff options
Diffstat (limited to 'Core')
-rw-r--r-- | Core/Authentication/RememberMe/TokenProviderInterface.php | 11 | ||||
-rw-r--r-- | Core/Authentication/Token/RememberMeToken.php | 3 | ||||
-rw-r--r-- | Core/Encoder/EncoderFactory.php | 1 | ||||
-rw-r--r-- | Core/Encoder/EncoderFactoryInterface.php | 3 | ||||
-rw-r--r-- | Core/SecurityContext.php | 2 | ||||
-rw-r--r-- | Core/SecurityContextInterface.php | 2 | ||||
-rw-r--r-- | Core/User/UserInterface.php | 1 |
7 files changed, 17 insertions, 6 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)) { diff --git a/Core/Encoder/EncoderFactory.php b/Core/Encoder/EncoderFactory.php index d7ae32d..738706a 100644 --- a/Core/Encoder/EncoderFactory.php +++ b/Core/Encoder/EncoderFactory.php @@ -51,6 +51,7 @@ class EncoderFactory implements EncoderFactoryInterface * Creates the actual encoder instance * * @param array $config + * * @return PasswordEncoderInterface */ private function createEncoder(array $config) diff --git a/Core/Encoder/EncoderFactoryInterface.php b/Core/Encoder/EncoderFactoryInterface.php index 811c262..3ae07e6 100644 --- a/Core/Encoder/EncoderFactoryInterface.php +++ b/Core/Encoder/EncoderFactoryInterface.php @@ -21,9 +21,10 @@ use Symfony\Component\Security\Core\User\UserInterface; interface EncoderFactoryInterface { /** - * Returns the password encoder to use for the given account + * Returns the password encoder to use for the given account. * * @param UserInterface $user + * * @return PasswordEncoderInterface never null */ function getEncoder(UserInterface $user); diff --git a/Core/SecurityContext.php b/Core/SecurityContext.php index 6d11850..0623140 100644 --- a/Core/SecurityContext.php +++ b/Core/SecurityContext.php @@ -49,8 +49,10 @@ class SecurityContext implements SecurityContextInterface * Checks if the attributes are granted against the current token. * * @throws AuthenticationCredentialsNotFoundException when the security context has no authentication token. + * * @param mixed $attributes * @param mixed|null $object + * * @return Boolean */ public final function isGranted($attributes, $object = null) diff --git a/Core/SecurityContextInterface.php b/Core/SecurityContextInterface.php index d57c409..46b2cc4 100644 --- a/Core/SecurityContextInterface.php +++ b/Core/SecurityContextInterface.php @@ -35,6 +35,7 @@ interface SecurityContextInterface * Sets the authentication token. * * @param TokenInterface $token + * * @return void */ function setToken(TokenInterface $token = null); @@ -44,6 +45,7 @@ interface SecurityContextInterface * * @param array $attributes * @param mixed $object + * * @return Boolean */ function isGranted($attributes, $object = null); diff --git a/Core/User/UserInterface.php b/Core/User/UserInterface.php index 9091bfc..3b66956 100644 --- a/Core/User/UserInterface.php +++ b/Core/User/UserInterface.php @@ -61,6 +61,7 @@ interface UserInterface * are relevant for assessing whether re-authentication is required. * * @param UserInterface $user + * * @return Boolean */ function equals(UserInterface $user); |