FormExtraBundle offer new validator constraints for your Symfony2 project.
This repository hosts FormExtraBundle that do not belong to the core of Symfony2 but can be nonetheless interesting to share with other developers.
Fork this repository, add your extension, and send a pull request.
git submodule add git://github.com/francisbesset/FormExtraBundle.git src/BeSimple/FormExtraBundle
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new BeSimple\FormExtraBundle\BeSimpleFormExtraBundle(),
// ...
);
}
// app/autoload.php
$loader->registerNamespaces(array(
'BeSimple' => __DIR__.'/../src',
// your other namespaces
));
// app/config/config.yml
be_simple_form_extra: ~
framework:
validation:
enabled: true
annotations:
namespaces:
formExtraValidator: BeSimple\FormExtraBundle\Validator\Constraints\