I want to override only one message in symfony2 default validation message which is :
This value should be the user current password.
this message has as a key security.validator.user_password
I tried to override this message by creating BundleName/Resources/config/security.yml
.
BundleName/Resources/config/security.yml
security:
validator:
user_password: custom message
I tried xml file and cleared the cache but I get nothing.
Any suggestions ?