frostiede/silex-validator-serviceprovider

v1.0.0 2016-10-16 14:15 UTC

This package is auto-updated.

Last update: 2024-12-16 18:34:47 UTC


README

Code Climate

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