ServiceProvider for Silex which enables annotations for the Symfony Validator component.
$ composer require frostiede/silex-validator-serviceprovider
Afterwards, register the ServiceProvider:
$app->register(new ValidatorServiceProvider());
Note: This is a replacement for the default ValidatorServiceProvider
provided by Silex.
So only use one of them.
Use it as the default ValidatorServiceProvider
provided by Silex. But be happy about being
able to use annotations.
Any help is welcomed. Feel free to create issues and merge requests :-)
MIT License