frostiede / silex-validator-serviceprovider
v1.0.0
2016-10-16 14:15 UTC
Requires
- doctrine/common: ^2.6
- silex/silex: ^2.0
- symfony/validator: ~3.0
This package is auto-updated.
Last update: 2024-11-16 18:23:31 UTC
README
ServiceProvider for Silex which enables annotations for the Symfony Validator component.
Installation
$ 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.
Usage
Use it as the default ValidatorServiceProvider
provided by Silex. But be happy about being
able to use annotations.
Contribution
Any help is welcomed. Feel free to create issues and merge requests :-)
License
MIT License