Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. <?php
  2.  
  3. namespace MyBundle\Form;
  4.  
  5. use Symfony\Component\Form;
  6. use Symfony\Component\Form\TextField;
  7. use Symfony\Component\Form\EmailField;
  8. use Symfony\Component\Form\PasswordField;
  9.  
  10. class UserForm extends Form
  11. {
  12.     protected function configure()
  13.     {
  14.         $this->add(new TextField('email', array(
  15.             'max_length' => 50
  16.         )));
  17.        
  18.         $this->add(new PasswordField('password'));
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement