Thank you very much Michael, this helped a lot. One important thing:
framework: # ... validation: enabled: true annotations: namespaces: my: My\Validator\Constrains -> my: My\Validator \Constrains\ Won't work without \ at the end. Very strange. Thanks again. On May 15, 11:40 am, Michel Salib <michelsa...@gmail.com> wrote: > In fact, when the constraint factory reads @assert:DebitCard, it cannot fin > the class DebitCard because "assert" is a shortcut to the build in > validators namespace. > > So, you have to create another namespace shortcut in your config.yaml : > > framework: > # ... > validation: > enabled: true > annotations: > namespaces: > my: My\Validator\Constrains > > Then you can use your annotation : @my:DebitCard -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en