Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppBundle\Form;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\Form\Extension\Core\Type\TextType;
- use Symfony\Component\Form\FormBuilderInterface;
- use Symfony\Component\OptionsResolver\OptionsResolver;
- class UserType extends AbstractType
- {
- public function buildForm(FormBuilderInterface $builder, array $options)
- {
- $builder->add("email", TextType::class)
- ->add("password", TextType::class)
- ->add("fullName", TextType::class);
- }
- public function configureOptions(OptionsResolver $resolver)
- {
- }
- public function getName()
- {
- return 'app_bundle_user_type';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement