sergiors/form-filter-service-provider

dev-master 2016-07-27 04:01 UTC

This package is not auto-updated.

Last update: 2024-12-19 01:15:57 UTC


README

To see the complete documentation, check out lexik/LexikFormFilterBundle

Install

composer require sergiors/form-filter-service-provider "dev-master"
use Sergiors\Silex\Provider\FormFilterServiceProvider;

$app->register(new FormFilterServiceProvider());

$form = $app['form.factory']
    ->createBuilder(/.../)
    ->getForm()
    ->handleRequest($req);

$query = /.../;

$app['form_filter']->addFilterConditions($form, $query);

License

MIT