Completed
Push — master ( 395774...b3be9a )
by
unknown
16s queued 12s
created

CustomImageForm::buildForm()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: audreymartel
5
 * Date: 18/06/2018
6
 * Time: 12:29
7
 */
8
9
namespace Dealer\Form;
10
11
12
use Symfony\Component\Form\Extension\Core\Type\FileType;
13
use Thelia\Form\BaseForm;
14
use Symfony\Component\Validator\Constraints;
15
16
class CustomImageForm extends BaseForm
17
{
18
    protected function buildForm()
19
    {
20
        $this->formBuilder
21
            ->add("file", FileType::class)
22
            ->add("parent_id", "hidden", array("constraints" => array(new Constraints\NotBlank())))
23
        ;
24
    }
25
}