Skip to content

[Reference] [UserPassword] Use the non-deprecated class for Symfony 2.2 #2297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 12, 2013

Conversation

michaelperrin
Copy link
Contributor

No description provided.

@michaelperrin
Copy link
Contributor Author

Sorry for the removed trailing whitespaces in the same commit, but I think it's worth merging them as well after all.

@wouterj
Copy link
Member

wouterj commented Mar 11, 2013

👍 Please add a .. note:: about the deprecation (as you can see in the Min Docs)

@michaelperrin
Copy link
Contributor Author

@wouterj Fixed

`Symfony\Component\Security\Core\Validator\Constraints` namespace since
Symfony 2.2. The `UserPassword` defined in the
`Symfony\Component\Security\Core\Validator\Constraint` namespace is
deprecated and will be removed in Symfony 2.3.
Copy link
Member

Choose a reason for hiding this comment

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

I think it is better to use something like:

Since Symfony 2.2, the `UserPassword*` classes in the 
``Symfony\Component\Security\Core\Validator\Constraint``
namespace is depecreated and will be removed in Symfony 2.3. 
Please use the `UserPassword*` classes in the 
``Symfony\Component\Security\Core\Validator\Constraints``
namespace instead.

@michaelperrin
Copy link
Contributor Author

@wouterj Sounds better with your sentence. I replaced mine with yours with just a few tweaks.

@wouterj
Copy link
Member

wouterj commented Mar 11, 2013

Ok, thank you for the quick response, good catch and nice PR!

@michaelperrin
Copy link
Contributor Author

You're welcome! Thanks for your help

weaverryan added a commit that referenced this pull request Mar 12, 2013
[Reference] [UserPassword] Use the non-deprecated class for Symfony 2.2
@weaverryan weaverryan merged commit b34f46a into symfony:2.2 Mar 12, 2013
@weaverryan
Copy link
Member

Very nice guys - thanks Michaël and WouterJ!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants