remove dump statement

This commit is contained in:
2017-04-18 22:18:19 +02:00
parent e4b4483845
commit 7b8d22a486
3 changed files with 9 additions and 20 deletions

View File

@@ -64,28 +64,11 @@ class ExportType extends AbstractType
$exportOptions = array(
'compound' => true,
'constraints' => array(
//new \Chill\MainBundle\Validator\Constraints\Export\ExportElementConstraint()
// new Assert\Callback(array(
// 'callback' => function($data, ExecutionContextInterface $context, $payload) use ($export) {
// dump('i call back');
// }
// ))
)
);
// add a contraint if required by export
/*if ($export instanceof ExportElementWithValidationInterface) {
dump('export instance of export element with validation');
$exportOptions = array_merge($exportOptions, array(
'constraints' => [new Assert\Callback([
'callback' => function($data, ExecutionContextInterface $context, $payload) use ($export) {
dump('i will execute callback');
$export->validateForm($data[self::EXPORT_KEY], $context);
}
])],
'cascade_validation' => true
));
} */;
$exportBuilder = $builder->create(self::EXPORT_KEY/*, FormType::class, $exportOptions*/);
$export->buildForm($exportBuilder);