I need to change format for DateTime validation constraint but I want to do it globally for the whole application to not copy-paste it like this: (I use yaml config in my application) Is there any option to do it globally in Symfony 5 application, using DI parameters or some other way? I didn’t find anything about it in official
Tag: symfony-validator
Validate against several constraints with OR logic in Symfony
I have a field in a request which can either be email or phone. Now I need to validate it against two constraints – the standard email constraint and a custom phone. I know that I can pass an array of constrains link this: But Validator applies the AND logic to the array of constraints, I need OR so that