Skip to content

Commit

Permalink
moved the UserPassword validator from the security bundle to the secu…
Browse files Browse the repository at this point in the history
…rity component to make it reusable outside the full-stack framework
  • Loading branch information
fabpot committed Jun 10, 2012
1 parent ea8ccf6 commit 0995b1f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Expand Up @@ -40,7 +40,7 @@

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

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

<services>
Expand Down
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace Symfony\Bundle\SecurityBundle\Validator\Constraint;
namespace Symfony\Component\Security\Core\Validator\Constraint;

use Symfony\Component\Validator\Constraint;

Expand Down
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace Symfony\Bundle\SecurityBundle\Validator\Constraint;
namespace Symfony\Component\Security\Core\Validator\Constraint;

use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\SecurityContextInterface;
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Component/Security/composer.json
Expand Up @@ -24,13 +24,15 @@
"require-dev": {
"symfony/form": "2.1.*",
"symfony/routing": "2.1.*",
"symfony/validator": "2.1.*",
"doctrine/common": ">=2.2,<2.4-dev",
"doctrine/dbal": ">=2.2,<2.4-dev"
},
"suggest": {
"symfony/class-loader": "self.version",
"symfony/finder": "self.version",
"symfony/form": "self.version",
"symfony/validator": "self.version",
"symfony/routing": "self.version",
"doctrine/dbal": "to use the built-in ACL implementation"
},
Expand Down

1 comment on commit 0995b1f

@stof
Copy link
Member

@stof stof commented on 0995b1f Jun 10, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to update the changelog files to add the new constraint for the component and remove it for the bundle

Please sign in to comment.