diff options
Diffstat (limited to 'Core/Validator/Constraints')
-rw-r--r-- | Core/Validator/Constraints/UserPassword.php | 3 | ||||
-rw-r--r-- | Core/Validator/Constraints/UserPasswordValidator.php | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Core/Validator/Constraints/UserPassword.php b/Core/Validator/Constraints/UserPassword.php index ed29b0c..76c4b3b 100644 --- a/Core/Validator/Constraints/UserPassword.php +++ b/Core/Validator/Constraints/UserPassword.php @@ -21,6 +21,9 @@ class UserPassword extends Constraint public $message = 'This value should be the user current password.'; public $service = 'security.validator.user_password'; + /** + * {@inheritdoc} + */ public function validatedBy() { return $this->service; diff --git a/Core/Validator/Constraints/UserPasswordValidator.php b/Core/Validator/Constraints/UserPasswordValidator.php index a4e0f90..ab455f3 100644 --- a/Core/Validator/Constraints/UserPasswordValidator.php +++ b/Core/Validator/Constraints/UserPasswordValidator.php @@ -29,6 +29,9 @@ class UserPasswordValidator extends ConstraintValidator $this->encoderFactory = $encoderFactory; } + /** + * {@inheritdoc} + */ public function validate($password, Constraint $constraint) { $user = $this->securityContext->getToken()->getUser(); |