<?php
namespace App\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\FormBuilderInterface;
class RegistrationType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder->add('user', UserType::class);
$builder->add('terms', CheckboxType::class, [
'property_path' => 'termsAccepted',
'label' => 'Согласие на обработку'
]);
}
}