X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/f8d4013ddc9db826a11d309789271a8e73174a61..8f7b7b48fe2be6d50fb2bb50785e00df8154669f:/Form/RegisterType.php diff --git a/Form/RegisterType.php b/Form/RegisterType.php index f7cda54..d34fc0a 100644 --- a/Form/RegisterType.php +++ b/Form/RegisterType.php @@ -3,6 +3,7 @@ namespace Rapsys\AirBundle\Form; use Symfony\Component\Form\Extension\Core\Type\TelType; +use Symfony\Component\Form\Extension\Core\Type\UrlType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Validator\Constraints\NotBlank; @@ -12,7 +13,7 @@ class RegisterType extends \Rapsys\UserBundle\Form\RegisterType { */ public function buildForm(FormBuilderInterface $builder, array $options) { return parent::buildForm($builder, $options) - ->add('phone', TelType::class, array('attr' => array('placeholder' => 'Your phone'), 'constraints' => array(new NotBlank(array('message' => 'Please provide your phone'))))); + ->add('phone', TelType::class, ['attr' => ['placeholder' => 'Your phone'], 'required' => false]); } /**