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