From: Raphaƫl Gertz Date: Thu, 14 Nov 2019 22:59:52 +0000 (+0100) Subject: Add RegisterType form with phone field extension X-Git-Tag: 0.1.0 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/f8d4013ddc9db826a11d309789271a8e73174a61 Add RegisterType form with phone field extension --- diff --git a/Form/RegisterType.php b/Form/RegisterType.php new file mode 100644 index 0000000..f7cda54 --- /dev/null +++ b/Form/RegisterType.php @@ -0,0 +1,24 @@ +add('phone', TelType::class, array('attr' => array('placeholder' => 'Your phone'), 'constraints' => array(new NotBlank(array('message' => 'Please provide your phone'))))); + } + + /** + * {@inheritdoc} + */ + public function getName() { + return 'rapsys_air_register'; + } +}