UserEditType.php 417 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Form;
  3. use Symfony\Component\Form\AbstractType;
  4. use Symfony\Component\Form\FormBuilderInterface;
  5. class UserEditType extends AbstractType
  6. {
  7. /**
  8. * {@inheritdoc}
  9. */
  10. public function buildForm(FormBuilderInterface $builder, array $options)
  11. {
  12. $builder
  13. ->remove('password');
  14. }
  15. public function getParent()
  16. {
  17. return UserType::class;
  18. }
  19. }