Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function buildForm(FormBuilderInterface $builder, array $options) |
||
15 | { |
||
16 | $builder |
||
17 | ->add('username', TextType::class, [ |
||
18 | 'label' => 'Pseudo', |
||
19 | 'label_attr' => [ |
||
20 | 'class' => 'label' |
||
21 | ], |
||
22 | 'attr' => [], |
||
23 | 'required' => true |
||
24 | ]) |
||
25 | ->add('email', EmailType::class, [ |
||
26 | 'label' => 'E-mail', |
||
27 | 'label_attr' => [ |
||
28 | 'class' => 'label' |
||
29 | ], |
||
30 | 'attr' => [], |
||
31 | 'required' => true |
||
32 | ]) |
||
33 | ->add('submit', SubmitType::class, [ |
||
34 | 'label' => 'Validate', |
||
35 | 'attr' => [] |
||
36 | ]); |
||
37 | |||
38 | $builder->add('user', User::class); |
||
39 | } |
||
47 | } |