for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the FreshSinchBundle
*
* (c) Artem Henvald <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Fresh\SinchBundle\Form\Type;
use Fresh\SinchBundle\Model\Identity;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type as CoreType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
* IdentityType.
* @author Artem Henvald <[email protected]>
class IdentityType extends AbstractType
{
* {@inheritdoc}
public function buildForm(FormBuilderInterface $builder, array $options): void
$builder
->add('type', CoreType\TextType::class, [
'required' => true,
])
->add('endpoint', CoreType\TextType::class, [
]);
}
public function configureOptions(OptionsResolver $resolver): void
$resolver->setDefaults([
'data_class' => Identity::class,
'csrf_protection' => false,
public function getBlockPrefix(): string
return '';