diff options
Diffstat (limited to 'Core')
9 files changed, 30 insertions, 20 deletions
diff --git a/Core/Authentication/Provider/DaoAuthenticationProvider.php b/Core/Authentication/Provider/DaoAuthenticationProvider.php index fa08955..f9e8b38 100644 --- a/Core/Authentication/Provider/DaoAuthenticationProvider.php +++ b/Core/Authentication/Provider/DaoAuthenticationProvider.php @@ -35,9 +35,11 @@ class DaoAuthenticationProvider extends UserAuthenticationProvider /** * Constructor. * - * @param UserProviderInterface $userProvider A UserProviderInterface instance - * @param UserCheckerInterface $userChecker An UserCheckerInterface instance - * @param EncoderFactoryInterface $encoderFactory A EncoderFactoryInterface instance + * @param UserProviderInterface $userProvider An UserProviderInterface instance + * @param UserCheckerInterface $userChecker An UserCheckerInterface instance + * @param string $providerKey The provider key + * @param EncoderFactoryInterface $encoderFactory An EncoderFactoryInterface instance + * @param Boolean $hideUserNotFoundExceptions Whether to hide user not found exception or not */ public function __construct(UserProviderInterface $userProvider, UserCheckerInterface $userChecker, $providerKey, EncoderFactoryInterface $encoderFactory, $hideUserNotFoundExceptions = true) { diff --git a/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php b/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php index bf2df86..e4bf963 100644 --- a/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php +++ b/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php @@ -37,8 +37,9 @@ class PreAuthenticatedAuthenticationProvider implements AuthenticationProviderIn /** * Constructor. * - * @param UserProviderInterface $userProvider A UserProviderInterface instance - * @param UserCheckerInterface $userChecker An UserCheckerInterface instance + * @param UserProviderInterface $userProvider An UserProviderInterface instance + * @param UserCheckerInterface $userChecker An UserCheckerInterface instance + * @param string $providerKey The provider key */ public function __construct(UserProviderInterface $userProvider, UserCheckerInterface $userChecker, $providerKey) { diff --git a/Core/Authentication/Provider/UserAuthenticationProvider.php b/Core/Authentication/Provider/UserAuthenticationProvider.php index 7b6079d..8183c62 100644 --- a/Core/Authentication/Provider/UserAuthenticationProvider.php +++ b/Core/Authentication/Provider/UserAuthenticationProvider.php @@ -34,8 +34,9 @@ abstract class UserAuthenticationProvider implements AuthenticationProviderInter /** * Constructor. * - * @param UserCheckerInterface $userChecker An UserCheckerInterface interface - * @param Boolean $hideUserNotFoundExceptions Whether to hide user not found exception or not + * @param UserCheckerInterface $userChecker An UserCheckerInterface interface + * @param string $providerKey A provider key + * @param Boolean $hideUserNotFoundExceptions Whether to hide user not found exception or not */ public function __construct(UserCheckerInterface $userChecker, $providerKey, $hideUserNotFoundExceptions = true) { @@ -110,8 +111,8 @@ abstract class UserAuthenticationProvider implements AuthenticationProviderInter * Does additional checks on the user and token (like validating the * credentials). * - * @param UserInterface $user The retrieved UserInterface instance - * @param UsernamePasswordToken $token The UsernamePasswordToken token to be authenticated + * @param UserInterface $user The retrieved UserInterface instance + * @param UsernamePasswordToken $token The UsernamePasswordToken token to be authenticated * * @throws AuthenticationException if the credentials could not be validated */ diff --git a/Core/Authentication/RememberMe/PersistentToken.php b/Core/Authentication/RememberMe/PersistentToken.php index 0e8f7d2..55e6b89 100644 --- a/Core/Authentication/RememberMe/PersistentToken.php +++ b/Core/Authentication/RememberMe/PersistentToken.php @@ -27,10 +27,10 @@ final class PersistentToken implements PersistentTokenInterface /** * Constructor * - * @param string $class - * @param string $username - * @param string $series - * @param string $tokenValue + * @param string $class + * @param string $username + * @param string $series + * @param string $tokenValue * @param DateTime $lastUsed */ public function __construct($class, $username, $series, $tokenValue, \DateTime $lastUsed) diff --git a/Core/Authentication/RememberMe/TokenProviderInterface.php b/Core/Authentication/RememberMe/TokenProviderInterface.php index 780a544..1ec9c80 100644 --- a/Core/Authentication/RememberMe/TokenProviderInterface.php +++ b/Core/Authentication/RememberMe/TokenProviderInterface.php @@ -37,8 +37,8 @@ interface TokenProviderInterface /** * Updates the token according to this data * - * @param string $series - * @param string $tokenValue + * @param string $series + * @param string $tokenValue * @param DateTime $lastUsed */ function updateToken($series, $tokenValue, \DateTime $lastUsed); diff --git a/Core/Authentication/Token/UsernamePasswordToken.php b/Core/Authentication/Token/UsernamePasswordToken.php index 67311db..6c6ed5b 100644 --- a/Core/Authentication/Token/UsernamePasswordToken.php +++ b/Core/Authentication/Token/UsernamePasswordToken.php @@ -24,8 +24,12 @@ class UsernamePasswordToken extends AbstractToken /** * Constructor. * - * @param string $user The username (like a nickname, email address, etc.) + * @param string $user The username (like a nickname, email address, etc.) * @param string $credentials This usually is the password of the user + * @param string $providerKey The provider key + * @param array $roles An array of roles + * + * @throws \InvalidArgumentException */ public function __construct($user, $credentials, $providerKey, array $roles = array()) { diff --git a/Core/Authorization/AccessDecisionManager.php b/Core/Authorization/AccessDecisionManager.php index c1b643e..a8bb5cf 100644 --- a/Core/Authorization/AccessDecisionManager.php +++ b/Core/Authorization/AccessDecisionManager.php @@ -30,9 +30,10 @@ class AccessDecisionManager implements AccessDecisionManagerInterface /** * Constructor. * - * @param VoterInterface[] $voters An array of VoterInterface instances - * @param string $strategy The vote strategy - * @param Boolean $allowIfAllAbstainDecisions Whether to grant access if all voters abstained or not + * @param VoterInterface[] $voters An array of VoterInterface instances + * @param string $strategy The vote strategy + * @param Boolean $allowIfAllAbstainDecisions Whether to grant access if all voters abstained or not + * @param Boolean $allowIfEqualGrantedDeniedDecisions Whether to grant access if result are equals */ public function __construct(array $voters, $strategy = 'affirmative', $allowIfAllAbstainDecisions = false, $allowIfEqualGrantedDeniedDecisions = true) { diff --git a/Core/SecurityContext.php b/Core/SecurityContext.php index 2910e3b..c88f54f 100644 --- a/Core/SecurityContext.php +++ b/Core/SecurityContext.php @@ -36,7 +36,9 @@ class SecurityContext implements SecurityContextInterface /** * Constructor. * + * @param AuthenticationManagerInterface $authenticationManager An AuthenticationManager instance * @param AccessDecisionManagerInterface|null $accessDecisionManager An AccessDecisionManager instance + * @param Boolean $alwaysAuthenticate */ public function __construct(AuthenticationManagerInterface $authenticationManager, AccessDecisionManagerInterface $accessDecisionManager, $alwaysAuthenticate = false) { diff --git a/Core/User/InMemoryUserProvider.php b/Core/User/InMemoryUserProvider.php index 26b4080..e73eb95 100644 --- a/Core/User/InMemoryUserProvider.php +++ b/Core/User/InMemoryUserProvider.php @@ -33,7 +33,6 @@ class InMemoryUserProvider implements UserProviderInterface * an array of attributes: 'password', 'enabled', and 'roles'. * * @param array $users An array of users - * @param string $name */ public function __construct(array $users = array()) { |