Skip to content

Commit 0995b1f

Browse files
committed
moved the UserPassword validator from the security bundle to the security component to make it reusable outside the full-stack framework
1 parent ea8ccf6 commit 0995b1f

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/Symfony/Bundle/SecurityBundle/Resources/config/security.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
<parameter key="security.http_utils.class">Symfony\Component\Security\Http\HttpUtils</parameter>
4242

43-
<parameter key="security.validator.user_password.class">Symfony\Bundle\SecurityBundle\Validator\Constraint\UserPasswordValidator</parameter>
43+
<parameter key="security.validator.user_password.class">Symfony\Component\Security\Core\Validator\Constraint\UserPasswordValidator</parameter>
4444
</parameters>
4545

4646
<services>

src/Symfony/Bundle/SecurityBundle/Validator/Constraint/UserPassword.php renamed to src/Symfony/Component/Security/Core/Validator/Constraint/UserPassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Bundle\SecurityBundle\Validator\Constraint;
12+
namespace Symfony\Component\Security\Core\Validator\Constraint;
1313

1414
use Symfony\Component\Validator\Constraint;
1515

src/Symfony/Bundle/SecurityBundle/Validator/Constraint/UserPasswordValidator.php renamed to src/Symfony/Component/Security/Core/Validator/Constraint/UserPasswordValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Bundle\SecurityBundle\Validator\Constraint;
12+
namespace Symfony\Component\Security\Core\Validator\Constraint;
1313

1414
use Symfony\Component\Security\Core\User\UserInterface;
1515
use Symfony\Component\Security\Core\SecurityContextInterface;

src/Symfony/Component/Security/composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@
2424
"require-dev": {
2525
"symfony/form": "2.1.*",
2626
"symfony/routing": "2.1.*",
27+
"symfony/validator": "2.1.*",
2728
"doctrine/common": ">=2.2,<2.4-dev",
2829
"doctrine/dbal": ">=2.2,<2.4-dev"
2930
},
3031
"suggest": {
3132
"symfony/class-loader": "self.version",
3233
"symfony/finder": "self.version",
3334
"symfony/form": "self.version",
35+
"symfony/validator": "self.version",
3436
"symfony/routing": "self.version",
3537
"doctrine/dbal": "to use the built-in ACL implementation"
3638
},

0 commit comments

Comments
 (0)