From f615e78dc20ea6a777e5a99e9d1ad39450c159df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 14 Nov 2019 23:59:52 +0100 Subject: [PATCH] Add RegisterType form with phone field extension --- Form/RegisterType.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Form/RegisterType.php 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'; + } +} -- 2.41.0