mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
remove dump statement
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user