| 1 | <?php |
||
| 10 | class OtpVerificationType extends AbstractType |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Confirmation |
||
| 14 | */ |
||
| 15 | protected $confirmation; |
||
| 16 | |||
| 17 | public function __construct(Confirmation $confirmation) |
||
| 21 | |||
| 22 | public function buildForm(FormBuilderInterface $builder, array $options = array()) |
||
| 23 | { |
||
| 24 | $builder |
||
| 25 | ->add('token', 'hidden') |
||
| 26 | ->add('otp', 'text') |
||
| 27 | ; |
||
| 28 | |||
| 29 | $builder->addEventSubscriber(new SubjectAdderListener($this->confirmation)); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | public function getName() |
||
| 39 | } |
||
| 40 |