symfony: how to use a validator class existing in a different folder -


I think Symfony tries to find valid square squares in this folder by default :

/ mybundle | / Validator -EmailNotesAdvivaliter.FP

Beliefs are done by this class "EmailNotesA.A.D.F.P."

  Class EmailNotes increase user compatibility {public $ message = 'this Email is already being used '; Public Work Valid () {Return 'EmailNotUsedValidator'; }}  

But I want to use a different folder:

  / mybundle | / Form | / Validity. -EmailNotUsedValidator.php  

How do I make this change? is trying to find the verifier every time in the default folder, though I want to use another one

Reading docs

You can register the validator as a service and give it a nickname (for similar types of forms ) And its aliases are valid ()


Comments