]> Raphaƫl G. Git Repositories - airbundle/blob - Form/RegisterType.php
Switch to fpdf
[airbundle] / Form / RegisterType.php
1 <?php
2
3 namespace Rapsys\AirBundle\Form;
4
5 use Symfony\Component\Form\Extension\Core\Type\TelType;
6 use Symfony\Component\Form\Extension\Core\Type\UrlType;
7 use Symfony\Component\Form\FormBuilderInterface;
8 use Symfony\Component\Validator\Constraints\NotBlank;
9
10 class RegisterType extends \Rapsys\UserBundle\Form\RegisterType {
11 /**
12 * {@inheritdoc}
13 */
14 public function buildForm(FormBuilderInterface $builder, array $options) {
15 return parent::buildForm($builder, $options)
16 ->add('phone', TelType::class, ['attr' => ['placeholder' => 'Your phone'], 'required' => false]);
17 }
18
19 /**
20 * {@inheritdoc}
21 */
22 public function getName() {
23 return 'rapsys_air_register';
24 }
25 }