<?php
namespace App\Form\Backend\Customer;
use App\Form\Backend\Shared\ContactType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\TelType;
use Symfony\Component\Form\Extension\Core\Type\UrlType;
use Symfony\Component\Form\FormBuilderInterface;
class SponsorContactType extends ContactType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
*
* @return void
*/
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
->add('phone', TelType::class, ['required' => false])
->add('fax', TelType::class, ['required' => false])
->add('email', EmailType::class)
->add('url', UrlType::class, ['required' => false])
;
}
}