php - How to separate folders for constraints and validators classes in symfony2? -


Symfony2 is trying to find my validation classes in the same folder as my obligation for some reasons. Is it possible to separate them into different folders? In my case I want to do a barrier folder and a validators folder.

You override constraint :: validatedby () and enter the valid class FQCN Can change FQCN will have to return it to the verifier by default, this includes:

  Public function is valid () {get_class ($ this)). 'Recognizer'; }  

That is why he is looking for a valid current directory.


Comments