]> Raphaël G. Git Repositories - userbundle/blob - Form/EditType.php
Rename Repository/EntityRepository in Repository
[userbundle] / Form / EditType.php
1 <?php declare(strict_types=1);
2
3 /*
4 * This file is part of the Rapsys UserBundle package.
5 *
6 * (c) Raphaël Gertz <symfony@rapsys.eu>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Rapsys\UserBundle\Form;
13
14 use Symfony\Component\Form\FormBuilderInterface;
15 use Symfony\Component\OptionsResolver\OptionsResolver;
16
17 /**
18 * {@inheritdoc}
19 */
20 class EditType extends RegisterType {
21 /**
22 * {@inheritdoc}
23 */
24 public function configureOptions(OptionsResolver $resolver): void {
25 //Call parent configure option
26 parent::configureOptions($resolver);
27
28 //Set defaults
29 $resolver->setDefaults(['mail' => false, 'password' => false]);
30 }
31
32 /**
33 * {@inheritdoc}
34 */
35 public function getName(): string {
36 return 'rapsys_user_edit';
37 }
38 }