From be637b5c23b4884e67a11d15c8b8e0db6831efba Mon Sep 17 00:00:00 2001 From: Michel Salib Date: Wed, 13 Jun 2012 02:33:21 +0300 Subject: [PATCH] Add upgrade for commit 0995b1f28b80f91cfef7b3201840aa3dbcc66ae1 --- UPGRADE-2.1.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/UPGRADE-2.1.md b/UPGRADE-2.1.md index 02b230ed44..70495271b4 100644 --- a/UPGRADE-2.1.md +++ b/UPGRADE-2.1.md @@ -143,6 +143,22 @@ * `MutableAclInterface::setParentAcl` now accepts `null`, review any implementations of this interface to reflect this change. + * The `UserPassword` constraint has moved from the Security Bundle to the Security Component: + + Before: + + ``` + use Symfony\Bundle\SecurityBundle\Validator\Constraint\UserPassword; + use Symfony\Bundle\SecurityBundle\Validator\Constraint as SecurityAssert; + ``` + + After: + + ``` + use Symfony\Component\Security\Core\Validator\Constraint\UserPassword; + use Symfony\Component\Security\Core\Validator\Constraint as SecurityAssert; + ``` + ### Form #### BC Breaks in Form Types and Options