Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace MyBundle\Form;
- use Symfony\Component\Form;
- use Symfony\Component\Form\TextField;
- use Symfony\Component\Form\EmailField;
- use Symfony\Component\Form\PasswordField;
- class UserForm extends Form
- {
- protected function configure()
- {
- $this->add(new TextField('email', array(
- 'max_length' => 50
- )));
- $this->add(new PasswordField('password'));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement