Commit ac4c5a56 authored by Dave Marshall's avatar Dave Marshall

Pass constraints with keys for all symfony versions

parent 87967798
...@@ -87,7 +87,8 @@ class ValidatorServiceProviderTest extends \PHPUnit_Framework_TestCase ...@@ -87,7 +87,8 @@ class ValidatorServiceProviderTest extends \PHPUnit_Framework_TestCase
)); ));
$builder = $app['form.factory']->createBuilder('form', array(), array( $builder = $app['form.factory']->createBuilder('form', array(), array(
'validation_constraint' => $constraints, 'validation_constraint' => $constraints, // symfony/validator >=2.1,<2.3
'constraints' => $constraints, // symfony/validator ~2.3
'csrf_protection' => false, 'csrf_protection' => false,
)); ));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment