UserAdmin.php 764 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /*
  3. * This file is part of the Sonata package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\UserBundle\Admin\Entity;
  11. use Sonata\UserBundle\Admin\Model\UserAdmin as BaseUserAdmin;
  12. use Sonata\AdminBundle\Form\FormMapper;
  13. class UserAdmin extends BaseUserAdmin
  14. {
  15. /**
  16. * {@inheritdoc}
  17. */
  18. protected function configureFormFields(FormMapper $formMapper)
  19. {
  20. parent::configureFormFields($formMapper);
  21. $formMapper
  22. ->with('Management')
  23. ->add('credentialsExpired', null, array('required' => false))
  24. ->end()
  25. ;
  26. }
  27. }