diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2015-01-08 16:56:14 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2015-01-08 17:01:58 +0100 |
commit | da2405d9e7a6d472d29a146ee999dca99a0ba95b (patch) | |
tree | 6ae0a1dcbbf4bee8a58666e26fb71e009d7fd896 /Core/Validator/Constraints | |
parent | 58cc6f466e5fef2fbbebe9fea158a5ee7c610e79 (diff) | |
download | symfony-security-da2405d9e7a6d472d29a146ee999dca99a0ba95b.zip symfony-security-da2405d9e7a6d472d29a146ee999dca99a0ba95b.tar.gz symfony-security-da2405d9e7a6d472d29a146ee999dca99a0ba95b.tar.bz2 |
added type-hint
Diffstat (limited to 'Core/Validator/Constraints')
-rw-r--r-- | Core/Validator/Constraints/UserPasswordValidator.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Core/Validator/Constraints/UserPasswordValidator.php b/Core/Validator/Constraints/UserPasswordValidator.php index 66b8647..2dc7fee 100644 --- a/Core/Validator/Constraints/UserPasswordValidator.php +++ b/Core/Validator/Constraints/UserPasswordValidator.php @@ -12,7 +12,6 @@ namespace Symfony\Component\Security\Core\Validator\Constraints; use Symfony\Component\Security\Core\User\UserInterface; -use Symfony\Component\Security\Core\SecurityContextInterface; use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; use Symfony\Component\Validator\Constraint; @@ -25,12 +24,7 @@ class UserPasswordValidator extends ConstraintValidator private $tokenStorage; private $encoderFactory; - /** - * @param SecurityContextInterface|TokenStorageInterface - * - * Passing a SecurityContextInterface as a first argument was deprecated in 2.7 and will be removed in 3.0 - */ - public function __construct($tokenStorage, EncoderFactoryInterface $encoderFactory) + public function __construct(TokenStorageInterface $tokenStorage, EncoderFactoryInterface $encoderFactory) { $this->tokenStorage = $tokenStorage; $this->encoderFactory = $encoderFactory; |