From: Raphaƫl Gertz Date: Thu, 14 Nov 2019 22:59:52 +0000 (+0100) Subject: Add RegisterType form with phone field extension X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/f615e78dc20ea6a777e5a99e9d1ad39450c159df?hp=97b9d66c26407300226155c6c8179d27d08d3ec8 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'; + } +}